Hello!
I have a program that uses altair to generate a visualization of a scatterplot with a dropdown selection. The number of options can get pretty large, and viewing the visualization no longer works at a certain point. I am just curious is typically done for exporting cases such as this (where there are multiple dropdown visualizations), or if there is a workaround for this.
Thanks!
Hello @Sean_Golez,
I'm a little confused about the specifics of your problem. The dropdown gets too large? How does this impact the export? Maybe you could provide an example?
Hello @colinvwood,
I apologize for the confusion. Essentially, I think that if the number of graphs that can be viewed via the dropdown gets too large, then qiime 2 view is unable to load it. Here are 2 examples: one has 10 drop down options and the other has 289 dropdown options: link
The small one loads fine, but the large one crashes. I would like to able to export large visualizations such as this in a single program call, so I am wondering there is a work around for visualizing plots with a large number of dropdowns, such as this.
Thanks!
Hello @Sean_Golez,
This doesn't seem to be a problem with q2view but rather with the visualization itself--it's just too gigantic. I say this because I couldn't get the index.html to open in my browser, even without q2view. Vega visualization specs are verbose, and the number of them wrapped into one file has made it too much to handle.
A solution might be to pre-render the visualizations in the qiime method and only put those in the output directory so that the index.html file doesn't have to include the full inline specs and datasets for each visualization.
2 Likes