Dynamically create a new chart #8445
-
Hello there, Imagine this, i have 2 categories: And i declare 2 charts and its fine, but the user adds a categorie Lumionisity and now i have to go to the code and add a new chart. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
you will have to solve this in your own code. When a user adds a new category you will need to add a new canvas to your page and then you can call the |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm sort of encountering the same issue right now - may I ask specifically how you solved this? (What does it look like in your code?) |
Beta Was this translation helpful? Give feedback.
you will have to solve this in your own code. When a user adds a new category you will need to add a new canvas to your page and then you can call the
new Chart(ctx, config)
again to make a chart on that canvas