View Full Version : Changing chart column colors - Multi Series Chart Bug?

27 Oct 2011, 7:15 PM
I have a chart that has a column series with 2 yFields; and 2 line series'. In total I'm showing 4 pieces of data.

I am using the following theme that simply provides 4 colors (red, green, blue, white for simplicity here):

Ext.define('Ext.chart.theme.Givit', {
extend: 'Ext.chart.theme.Base',
constructor: function (config) {
colors: ['#F00', '#0F0', '#00F', '#FFF']
}, config)]);

The 2 columns are assigned the correct colors (red and green), but the two lines are colored green and blue (instead of blue and white).

When I add an additional 2 yFields to the columns, they all come out in the correct color (red, green, blue, and then white), and the two lines remain as green and blue (when I would now expect them to be red and green).

It looks like the first line series does not take into consideration the number of yFields in the column series when determining what color to use from the theme.

Can anyone help me with this? Is this a bug? Or am I doing something wrong?

Greatly appreciated.