[BUG] Ext-4.2.0.489 Draw Line Chart
Hi,
There is an bug in drawing a line chart both LTR and RTL mode.
index variable in this code not defined.
Code:
series.getLegendColor(index)
Code:
drawLine: function(fromX, fromY, toX, toY, z, seriesStyle) {
var me = this,
surface = me.surface,
series = me.series;
return me.add('line', surface.add({
type: 'path',
path: 'M' + fromX + ',' + fromY + 'L' + toX + ',' + toY,
zIndex: (z || 0) + 2,
"stroke-width": series.lineWidth,
"stroke-linejoin": "round",
"stroke-dasharray": series.dash,
stroke: seriesStyle.stroke || series.getLegendColor(index) || '#000',
style: {
cursor: 'pointer'
}
}));
},
Regards