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
Boosts module with Highstock and dataGrouping #5160
Comments
Note that |
Hi, what happens when you set units to: I made a new example where there are points every 1 minute, and less points http://jsfiddle.net/cbaket/n9j1s74a/4/ and here it works, but if you change and add points every 1 hour (change line in 'getData' function) it crashes. Thanks ;) |
Sorry, I didn't use the fixed version of boost.js in my fiddle. It simply disables data grouping because we don't need it in boost, it just adds extra computing. See http://jsfiddle.net/highcharts/n9j1s74a/5/. |
Ok, but now you can't use dataGrouping ... Thanks ;) |
That's correct. It could probably be done, but the chart will render faster if we just skip the data grouping and let the sampling be up to the boost module. |
Hi, First of all, thank you very much for your quick and usefull answers!! 👍 . In my project I need to import boost module because some times there are charts with many points and without boost.js it's too slow (and with Firefox the tooltip is very very slow). So if we have a chart with one point every day, and user sets dataGrouping to 1 hour(or 1 minute) and there are many points, it will crash. Thanks!!! |
The thing is that data grouping defeats the purpose of the boost module. The data grouping is designed to increase perfomance by sampling the data into larger groups, so that we have less data to handle. The boost module also increases performance by sampling data, but does so more aggressively and at a lower level. But by running data grouping, the data is already down-sampled, so the boost module has nothing more to do. Therefore is is best to disable data grouping to let the much faster boost module do its work. |
Hi Torstein, I'm not sure if this is the right place to ask. But does this Boost.js module works with candlesticks? Currently we are having issue with performance when displaying too much stocks historical price data. Thanks. |
Hi Roland, currently the boost module does not work with candlesticks. |
Hi Torstein, Thanks for the reply. I hope this will come available with all series type in the future. By the way, any plan to create an all-canvas in future Highcharts version? |
So just by including the boost module data grouping is disabled for all charts? |
Sure! To set it on the whole chart, set For individual series, set the |
While |
Can you set |
No, |
Internal note: |
This is fixed now in the master branch. The boost module shouldn't alter the series properties unless it is actually boosting. |
I guess "Check how it works with Highstock and data grouping." is part of "Development plan" of the module, so there is an issue - some times it doesn't work with data grouping.
If data is (force) grouped, but boostThreshold is still exceeded, then browser hangs and if you get lucky it will unfreeze and throw errors like "max stack exceeded".
Example: http://jsfiddle.net/n9j1s74a/
Steps: increase n to 12e4 and hit run (there will be 5001 grouped points)
The text was updated successfully, but these errors were encountered: