udupa-varun / hdf5_explorer

A tool to visualize data from HDF5/H5 data files that adhere to the PDX data structure, built using Streamlit.
0 stars 0 forks source link

[FEATURE] do not plot markers for large number of data points #15

Closed udupa-varun closed 1 year ago

udupa-varun commented 1 year ago

Is your feature request related to a problem? Please describe. When plotting a large number of data points, plotly can be very slow if using markers (scatter or scatter-line).

What would adding this feature accomplish? An override could help performance for large number of data points.

Is the lack of this feature currently blocking your work? No

Describe the solution you'd like A simple check for the number of data points being plotted, that either respects the chart type or overrides with a line plot.

Describe alternatives you've considered There is a resampler for plotly that might help: https://github.com/predict-idlab/plotly-resampler Specifically for integrating with streamlit, this could be useful: https://github.com/predict-idlab/plotly-resampler/issues/77

Additional context N/A

udupa-varun commented 1 year ago

Unfortunately the plotly-resampler package will require integrating a dash app into streamlit, which seems like a lot of bloat. It can be reconsidered if the app moves to dash instead in the future.