Axis hide in JavaScript Chart control
18 Nov 20181 minute to read
By using the chartMouseClick event, you can hide the axis line through legend.
To hide the axis line through legend click, follow the given steps:
Step 1:
Create a chart with multiple axes.
By using the chartMouseClick event, you can get the legend’s target ids. Using this event, you can also get the yAxisName of each axis, based on which you can hide the axis line when clicking the legend.
The following code sample demonstrates the output.