Home forums Using CanvasJS Add/remove series dynamically.

This topic contains 2 replies, has 2 voices, and was last updated by  javadevmtl 5 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #6533

    Hi building a demo dashboard using the latest CanvasJs. Looking through the docs i don’t see how you add or remove a series dynamically. Is this possible?



    Yes, you can add dataSeries dynamically. You just need to created a new dataSeries object and add it to the data array.

    Here is an example.

    Sunil Urs



    Figured it out right after I wrote this :)

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

You must be logged in to reply to this topic.