-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting "fillGraph" results in considerable slowdown for complex charts #346
Comments
From konigsb...@gmail.com on December 04, 2012 04:18:32 Labels: Performance |
From konigsb...@google.com on February 08, 2013 09:46:05 Labels: Version-2 |
From phildcr...@gmail.com on December 07, 2013 06:14:43 Attached a quick CPU Profile screenshot of the slow functions for a Graph with a single series of approx. 10,000 data points. Attachment: CPU_Profile_cropped.png |
From zasebn...@gmail.com on June 19, 2014 06:28:04 I have the same problem. I'm loading 100k points and without fillGraph, it takes about 5-10 seconds. But when I use it, it never loads (chrome/ff and others just crashes). |
One idea would be to be more aggressive about down-sampling when using |
I added a "Fill" checkbox to the
i.e. |
Looking more deeply at Here's how you might expect a filled graph to be drawn (from the bottom left point): You start on the axis, draw the chart line across the top, then drop down to the axis and close. Now here's how dygraphs draws it (I've dropped the fill for clarity): For each pair of next/prev points, dygraphs moves to the left x-value on the x-axis. Then it draws a line to the right point on the x-axis. Then it draws a line up to the chart line. Then it draws a line back to the previous point on the chart. On the next iteration through, it moves to the next point on the x-axis. This is crazy. It involves far more lines than is necessary and it thwarts attempts to drop unnecessary |
Just wanted to say excellent job. Thank you. |
From da...@google.com on March 29, 2012 15:16:22
This is particularly evident when setting "animatedZooms".
Original issue: http://code.google.com/p/dygraphs/issues/detail?id=308
The text was updated successfully, but these errors were encountered: