Home Forums Chart Support How to hide the secondary graph but not the axis label Reply To: How to hide the secondary graph but not the axis label

#22405

@satyabratacanvas,

Can I do the same from an outer function without click on legend ?

You can hide / unhide dataSeries by toggling visible property of dataSeries. Please take a look at this updated JSFiddle, where all dataSeries are hidden / shown on clicking a button.
Hide Unhide all DataSeries in Chart from a Button

I do not need legend in my application.

Legends will be shown when showInLegend is set to true, defaults to false. So legends will not be shown in the chart by setting showInLegend to false or by not setting the property at all.


Vishwas R
Team CanvasJS