Im trying to hide chart points dynamically using point.update. My code is as follows:
Code: Select all
events: {
legendItemClick: function (e: any) {
if (e.target.chart.series.length) {
e.target.chart.series[0].data.forEach((point: any) => {
if (point.x > localDate) {
point.update({ visible: !e.target.visible }, false, false);
}
});
}
},
},
See the issue in this video:
https://streamable.com/r7h49n