faheem801 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Line Chart is not displaying if the data points are huge(more than 65 thousand) #374

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello All,
I am using flot chart in my project. it is working fine when the content is 
small but for huge data it is not displaying graph.
I am sending the html file as attachment in which a lot of data points are 
present and it is not showing any graph.
Please help me on this.

Thanks in advance.

Original issue reported on code.google.com by gaurav00...@gmail.com on 9 Jul 2010 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
Hi!

It's probably just going berserk. You really need to downsample the data. Think 
of it this way, if you're using a default size, there are only 600 pixels to 
draw the chart on horizontally. If you spend one pixel per point, you can only 
draw 600 points anyway. So you might as well transform your dataset into much 
fewer points, e.g. using a running average or divided it into smaller intervals 
and take the min and max in each.

If you search the forum/mailing list, there are some posts discusses this.

The basic problem is that we're doing these drawing operations inside a slow 
browser. We can't just continue throwing points at it and expect it to run fast 
enough. However, Flot won't do the resample itself at the moment, you have to 
do that manually first yourself.

I'm going to close the bug since I don't think it's a bug per se in Flot.

Original comment by olau%iol...@gtempaccount.com on 13 Dec 2010 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:52