Skip to content

Instantly share code, notes, and snippets.

@nick
Created April 12, 2011 17:09
Show Gist options
  • Save nick/915935 to your computer and use it in GitHub Desktop.
Save nick/915935 to your computer and use it in GitHub Desktop.
var colors = ['#555', '#666', '#777', '#888', '#999'];
var baseColor = '#eee';
Ext.define('Ext.chart.theme.Fancy', {
extend: 'Ext.chart.theme.Base',
constructor: function(config) {
this.callParent(Ext.apply({
axis: {
fill: baseColor,
stroke: baseColor
},
axisLabelLeft: {
fill: baseColor
},
axisLabelBottom: {
fill: baseColor
},
axisTitleLeft: {
fill: baseColor
},
axisTitleBottom: {
fill: baseColor
},
colors: colors
},
config));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment