Home forums Using CanvasJS 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

Vishwas R
Keymaster

@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.

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