question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Boost.js module with highstock

See original GitHub issue

Anyone has an example of how to use the boost.js module with this? So far I tried import ReactHighcharts from "react-highcharts/ReactHighstock"; require('highcharts-boost')(ReactHighcharts); and import ReactHighcharts from "react-highcharts/ReactHighstock"; require('highcharts-boost')(ReactHighcharts.ReactHighstock);

but either they don’t do anything or produce an error in the console about win not being defined.

Thank you.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ariftcommented, Mar 20, 2017

This was resolved a while ago. I’ll put my solution in case someone else comes across it:

import ReactHighcharts from "react-highcharts/ReactHighstock";
import Boost from "highcharts-boost";
Boost(ReactHighcharts.Highcharts);

Remember, Boost module won’t actually do anything unless the number of points in a series is above a threshold (which i believe the default is 5000, but i could be wrong). Even if the sum of all the series points are above the default value, it still will not work unless individual series points are above the threshold. In order to get around this, you will have to add boostThreshold to the series setting and set it to whatever value you’d like. You’ll have to do this for each series since there is no global setting. Ex:

{
   ...
   chart: {
      type: 'line'
   },
   series: [
      {data: someArray, boostThreshold : 500},
      {data: someArray2, boostThreshold : 500},
   ]
}
0reactions
ilyjscommented, Jan 10, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Boost module | Highcharts
The Boost module is a stripped down renderer and a set of data handling modifications for Highcharts. It bypasses some of the standard...
Read more >
highcharts/boost-module.md at master - GitHub
The Boost module is a stripped down renderer and a set of data handling modifications for Highcharts. It bypasses some of the standard...
Read more >
Boost options for highcharter objects - Joshua Kunst
The Boost module allows certain series types to be rendered by WebGL instead of the default SVG. This allows hundreds of thousands of...
Read more >
Highcharts Demo - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Read more >
HighChart Boost Module in highmaps not working
The boost module is a “renderer-in-a-module”. Including modules/boost.js will, by default, activate boost for all series that support it ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found