View Full Version : Chart Theming

29 May 2014, 5:42 PM
I came across an issue when I set a line chart's theme to 'Blue' and then hid and unhid a series, it turned it back to the 'Base' theme, while the legend kept the original color.

I'd make a fiddle, but it doesn't include the charting classes

Ext.create({ xtype: 'chart',
renderTo: Ext.getBody(),
width: '100%',
theme: 'Blue',
store: Ext.create('Ext.data.JsonStore', {
fields: ['x', 'y'],
data: [{x: 1, y:1},{x: 2, y:2},{x: 3, y:1}]
axes: [{
type: 'numeric',
position: 'left',
fields: ['y']
}, {
type: 'category',
position: 'bottom',
fields: 'x'
series: [{
type: 'line',
xField: 'x',
yField: 'y',
title: 'Y'