Maximum row length for Altair chart?

I have a Streamlit app that lets users select columns from a csv file to plot as a scatter plot using Altair. Most of the columns are numeric, but a couple are nominal (names/identifiers). This csv file is quite long (has 1692 rows). Most columns are plotting as expected except when I try to plot the names/identifiers vs any other column. When I select the names to be plotted on the x-axis, the plot shows up, but when I select them to be plotted on the y-axis, nothing shows up unless I make the plot full screen.

I think the problem is that it’s trying to display too many rows, but it never throws me an error or anything that tells me what the maximum length of a chart is. When I filter my data to display less rows, then I can plot the names in the y-axis vs. any other column.

Is this a known problem? Is this because I’m using Altair, or is this a Streamlit problem? I know Altair has a max number of rows=5000, but I’m nowhere near this limit. Thanks!

It works for me with 2000 rows, so definitely 1692 rows are not necessarily too many. It is probably something else about your data or your plot that is causing the issue.