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 ( ), 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 =

mycol = client['coll']

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

trace = Scatter(