Home › forums › Using CanvasJS › Add/remove series dynamically.
This topic contains 2 replies, has 2 voices, and was last updated by javadevmtl 3 years, 2 months ago.
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.
Figured it out right after I wrote this :)
You must be logged in to reply to this topic.