Python API scatter graph data issue

Hi all,
I recently implemented the python api on my raspberry pi to upload data to plotly and plot a scatter graph of temperature vrs time.

It works great but it seems that the data on the graph only goes back 3 days.

Is there anything that is overwriting the historical data or any way of maintaining all historical data?

Thanks,

Paul

ok I figured it out it was the maxpoints variable.