In ProgressPosted in: Product Support
tnJuly 6, 2016 at 7:30 am #6317
If I want to change between visualizations components and data in the same view. How would I go about it? I am going to create another dropdown that will switch out the data and visulization.
Do I need to clear the viz_container and then re-initialize?
I don’t seen any methods to do this.
Any help would be appreciated.
TNvizulyJuly 6, 2016 at 10:23 am #6318
One quick and easy way would be to create another vi_container and related visualization, and use the drop down to toggle the visibility and loading of data of both containers and related visualizations.
– Tomnaruka17August 9, 2016 at 11:15 am #6366
I have implemented similar logic.
1. Create options (ddl) with database or csv file names
3. pass file name as parameter in loaddata() method like loadData(fileName)
4. inside loaddata() method change filename with selected value
Please note you have to clear “viz-container” div on every selection otherwise it will create new div on same page. to make it use $(divname).empty();
You must be logged in to reply to this topic.