My requirement is to plot a pandas dataframe with a shape of (50,000, 2) as an interactive line chart. One column contains datetime64[ns], and the other contains floating point integers.
Unfortunately, it appears that with this much data, the interactive chart becomes quite slow to pan-and-zoom. My chart is very basic, and I can observe that once I decrease the # of rows to < ~10,000, the performance becomes noticeably better. I have read the FAQ and understand that the official guidelines doesn't even recommend more than 5,000 rows to begin with. Nevertheless, I am looking for ways to improve performance, and there doesn't seem to be a lot discussion on this
I don't need to display all 50,000 data points at once, but I do want all 50,000 stored in a self-contained .html file (ie, chart).
I am thinking along the lines of "Saving plot to disk", "Using a slider to create a sliding window effect that limits the number of data points that is displayed at once, "Use a more efficient data type", "Changing the appearance of the lines so that it's less intensive to render". Really, anything that might help is fine. For some context, I am comparing the performance against more dedicated visualization software like Matlab, in which I have no problem making an interactive line chart with this much data.
Alternatively, I'm also happy to hear an explanation for why this much data isn't feasible to plot interactively due to constraints in HTML, JSON, Altair, Vega, or whatever else.