-
tnJuly 6, 2016 at 7:30 am #6317
Hi Vizuly,
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.
Thank you,
TNvizulyJuly 6, 2016 at 10:23 am #6318Hello TN,
There are several ways you could this with javascript. But there is nothing specific you have to do with vizuly. Just use any of the same techniques you would use with any other web application.
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.
– Tom
naruka17August 9, 2016 at 11:15 am #6366I have implemented similar logic.
steps
1. Create options (ddl) with database or csv file names
2. using jquery/javascript get the selected value from option
3. pass file name as parameter in loaddata() method like loadData(fileName)
4. inside loaddata() method change filename with selected valuePlease 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();
thanks
Chetan -
|
You must be logged in to reply to this topic.