New to KendoReactStart a free 30-day trial

Set PlotBands on a Plot-Area Click of a Chart

Environment

Product Version4.6.0
ProductProgress® 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 ...
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support