Skip to content

Instantly share code, notes, and snippets.

@dwarfmondo
Created December 14, 2010 22:17
Show Gist options
  • Save dwarfmondo/741217 to your computer and use it in GitHub Desktop.
Save dwarfmondo/741217 to your computer and use it in GitHub Desktop.
example of globally setting options for all charts
init_charts: function() {
Highcharts.setOptions({
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
tooltip: {
shadow: false,
backgroundColor: 'rgba(0, 0, 0, .85)',
borderRadius: 3,
borderWidth: 0,
style: {
padding: 5,
fontSize: '10px',
fontFamily: 'Tahoma, verdana, sans-serif',
color: '#fff'
}
},
plotOptions: {
column: {
borderWidth: 1,
pointPadding: 0,
groupPadding: 0,
shadow: false
}
},
xAxis: {
lineColor: '#ccc',
tickPosition: 'outside',
tickmarkPlacement: 'on',
tickColor: '#ccc'
},
yAxis: {
title: {
text: null
},
gridLineColor: '#eee'
},
credits: {
enabled: false
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment