-
vizulyApril 18, 2016 at 12:34 pm #6116
Hi Susan,
Thanks for posting your question on the forum. I took a look at what you were doing and made a couple quick fixes:
https://plnkr.co/edit/q8kKcDJzHl8FEIlsma9u?p=preview
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.
– Tom
SusanApril 19, 2016 at 5:28 am #6120Thank you. That did help me get to a working state for my app. The actual application has some better naming conventions; I just put something quick together to demonstrate the issue.
-
|
You must be logged in to reply to this topic.