Home forums Using CanvasJS Add/remove series dynamically.

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

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

    javadevmtl
    Participant

    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?

    Thanks

    #6536

    Sunil Urs
    Keymaster

    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

    #6729

    javadevmtl
    Participant

    Thanks!

    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.