Home › forums › Chart Support › Turn On/OFf Legends
Tagged: Graph Legend
We are using CanvasJS on a application containing a lot of traces per graph.
It ends up the the legends associated to each trace are too large, and are occupying a lot of real state on the graph.
* Is there a way to have a button that allows the user to turn the legends on/off on a given graph ?
* is it possible to have two different legend names:Example:
– case1, case2, case3, — to be displayed on the legend table,
– a large string to be displayed in the tooltip when we pass the mouse on the curve.
Please take a look at this JSFiddle for an example on showing / hiding legend items of all the dataSeries using a button by setting showInLegend property.
The example also shows tooltip with full content on mouse hovering legend item with the help of itemmousemove of legend.
You must be logged in to reply to this topic.