Home Forums Chart Support Turn On/OFf Legends

Turn On/OFf Legends

Viewing 2 posts - 1 through 2 (of 2 total)
  • #31717

    Hello,

    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.

    Question:

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

    Thank you.

    #31724

    @cadencevivaade,

    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.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.