Posted 8 August 2019, 10:53 pm EST
Hi,
I’m using FlexChart’s itemFormatter to change the color of specific point.
itemFormatterMap(engine, hitTestInfo, defaultFormat) {
if (hitTestInfo.series.binding === 'WAY' && hitTestInfo.item.WellName === this.props.wellName) {
engine.fill = 'DarkOrange';
engine.stroke = 'DarkOrange';
}
defaultFormat();
}
And it works fine.
http://prntscr.com/oqi2yy
But when I try to change the size of the point by adding engine.strokeWidth, I get multiple points changed.
itemFormatterMap(engine, hitTestInfo, defaultFormat) {
if (hitTestInfo.series.binding === 'WAY' && hitTestInfo.item.WellName === this.props.wellName) {
engine.fill = 'DarkOrange';
engine.stroke = 'DarkOrange';
engine.strokeWidth = 6;
}
defaultFormat();
}
Not sure why is this happening, someone please help?