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.

Having trouble with highcharts-more

See original GitHub issue

I’ve tried every possible combination of imports that I can think of but no luck. Here is what I think should work:

import Highcharts from 'highcharts-release/highcharts.src.js';
import 'highcharts-release/highcharts-more.src.js';
import 'highcharts-release/modules/exporting.src.js';
import ReactHighcharts from 'react-highcharts';

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
johnarrrcommented, Jan 25, 2016

@lmaccherone and anyone else who comes along later – this seems to work (with webpack, at least):

import ReactHighcharts from 'react-highcharts/dist/bundle/highcharts'
import HighchartsMore from 'highcharts-more'
HighchartsMore(Highcharts)

Using the ReactHighcharts bundle automatically adds Highcharts.

2reactions
laopunkcommented, Jul 15, 2016

For what it’s worth, this solution works for me:

HighchartsMore = require('highcharts-more')(ReactHighcharts.Highcharts)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Having trouble displaying more than 2 pts on a dynamic chart
I'm using Vue and have Highcharts integrated, and just started adding in a dynamic chart option that loads data via AJAX from our...
Read more >
[highcharts-more] Cannot read properties of undefined ...
I've printed out the data any time the chart is set to re-render, and the has never been anything null, nor empty arrays....
Read more >
Issues with Highcharts Upgrade to 8.2.2
I am getting below error in below code snippet when i upgrade to latest version of Highcharts, can you please help me out....
Read more >
Require highcharts-more.js not found
Hi Benoit, Welcome to our forum and thanks for contacting us. Yesterday I had the same problem and it turned out that it...
Read more >
Alternate for highcharts-more - Highcharts official support forum
To avoid bloating the Highcharts core JavaScript, we decided to deploy a few chart types and features in the highcharts-more.js file. That's why ......
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