extjs - Mark custom chart bar color to legend in EXT JS 5 -
EXTJS 5 I have a problem when using custom legend color in the chart I can apply custom color for chart legend , But I can not apply to that legend's item in EXT JS 4, I can use an override function in the series to control it. Like getLegendColor: function (index) {var proSpeciality = ["# EFD07B", "# 0082AD"]; Return ProspectiI [Index]; } but it is not available in EXT JS 5. Sample code. Ext.create ( 'Ext.Container', 'RenderTo: ext.getBody (), width: 600, height: 400, layout:' fit ', item: {xtype:' Carteshian ',' Store ': Store: {field: [' name ',' value ',' value2 '], data: [{name:' metric one ', value: 10, value 2: 15}, {name:' metric two ' (Name: 'metric four', value: 2, value 2: 15}, {name: 'value'}, value: 7, value 2: 15}, {name: 'metric three', value: 5, value 2: 15} 'Text:' 'numeric', position: 'left', title: {text: ...