vizulyApril 18, 2016 at 12:34 pm #6116
Thanks for posting your question on the forum. I took a look at what you were doing and made a couple quick fixes:
Basically you were grabbing a DOM reference to “div1” and “div2”, and re-creating the chart each time. The constructor function for any vizuly component like vizuly.component.radial_progress(DOMElement) takes a DOM element in its constructor and returns a reference to the new vizuly variable which contains the chart.
I put in a couple of quick hacks that make it work correctly, but you would probably want to clean up the naming convention (perhaps from div1,div2 to viz1,viz) and put those variables somewhere out of the global namespace where I put them. I just did it this way to minimize the amount of code I had to change.
I hope that helps point you in the right direction.
You must be logged in to reply to this topic.
© 2021 — vizuly.io