Home forums Using CanvasJS [Need Advice plz] About hide some legend.

This topic contains 1 reply, has 2 voices, and was last updated by  Sunil Urs 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5693

    striderblue
    Participant

    example:
    I have 3 line so it will show 3 legend.
    but if I filter 3 line to 2 line.
    How can I hide another legend?

    I can setting chart using : “chart.options.data[2].showInLegend = false;”

    thank you so much

    #5695

    Sunil Urs
    Keymaster

    Can you please let me know what you mean by filter 3 line to 2 line? If you are removing the respective series from the data array, then its respective legend gets removed automatically. Is it not behaving that way?… if not, can you please reproduce the behaviour in jsfiddle so that I can have a look and suggest a solution?

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

You must be logged in to reply to this topic.