New to KendoReact? Start a free 30-day trial
Set PlotBands on a Plot-Area Click of a Chart
Environment
Product Version | 4.6.0 |
Product | Progress® KendoReact Chart |
Description
How to set PlotBands when clicking on the Plot Area of a KendoReact Chart?
Solution
This can be achieved by using the onPlotAreaClick
property whose event handler will trigger every time the user clicks on the Plot Area.
It will be used to get the crosshair values and set the values of the plotBands to be those of the crosshair.
Optional: In order to avoid the Chart to play animations each time the PlotBands are updated, the transitions
property of the Chart should be set to false.
Change Theme
Theme
Loading ...