Visualizing large time-series data

I am trying to generate visualization code through API and it works fairly well with relatively small amount of data (less than few hundred data points). But as soon as I increase the number of data points close to 1k or more, it either takes too long or fails. Has anyone tried visualizing with large time-series datasets? Any learnings, best practices, alternatives?

I am hoping to make it work with 1-10K data points at a time, which is not large in a real enterprise setting.

Thanks in advance.