In my application I am using two charts for represent different values. I am using LegendModifier on the first chart. Is it possible when i uncheck the series on first chart and the same color series on second chart also need to hide from the second chart. Any event callback function available in LegendModifier ?
Update on this request here. We’ve added some new APIs to SciChart.js which will be available shortly in v2.2
isVisibleChanged callback on BaseRenderableSeries
When creating a renderableseries, you can pass an isVisibleChanged callback into the constructor options. Or, you can subscribe to BaseRenderableSeries.isVisibleChanged event handler after construction. This callback will be called when the legend modifier checkbox is checked/unchecked as this directly changes BaseRenderableSeries.isVisible
isCheckedChanged callback on LegendModifier
To make this API super easy to use, we’ve also added a event LegendModifier. isCheckedChanged and added a constructor option to pass a function for isCheckedChanged to the LegendModifier. This is called when any legend item is checked or unchecked.
More info on these two APIs soon
Please login first to submit.