Cant Load More Than 8 Plotly Charts

I am generating many plotly charts but when I try to load more than 8 figures, the data on the new figures isn’t rendered. Its there because I can see the hover labels, but it is invisible. It only rendered once I click on a trace in the legend but that unrenders one of the previously rendered figures so I am still at 8. The figures all render fine when produced in jupyter lab, and I saw someone else with the same problem (but no answer) so I think its an app end thing. Is there a fix for this? (streamlit 1.36)

Hey, can you share your code with the issue ?
I display 10 figures with plotly chart without an issue.

I found the problem, when generating plotly scattergl figures in a browser, there is a limit of 8 plots per page due to a limited number of WebGL contexts made available to the page by the browser. Supposedly there are workaround but there not very elegant.
webgl

It should work fine to use render_mode=‘svg’ as that page suggests. Do you have a case where that doesn’t work well?

I thought that was only for plotly express, I am using graph objects.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.