How can i load a large dataset on my chart?

I’m building a webapp where i’ll be displaying real time data. At a certain point my large dataset will become big, so i decided to make some testing and see what happened when i tried to load on my chart about 161k documents from a MongoDB collection.

The page is loading without problems but the chart does not have any data. How can i solve this? Am i loading too much data?

My code is exactly the same of the Wind Streaming example ( https://github.com/plotly/dash-wind-streaming ), i only edited the following line so that i would load data from a MongoDB database instead of SQLite DB:

client = MongoClient(port=27017)


db = client.one

mycol = client['coll']

df = pd.DataFrame(list(db.mycol.find({})))
	
	

trace = Scatter(
	y=df['num'],
	line=Line(
		color='#42C4F7'
	),
)