-
Notifications
You must be signed in to change notification settings - Fork 235
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
Having trouble with highcharts-more #72
Comments
I knew as soon as I asked, I would figure it out. This worked for me:
It meant that I had to separately |
Hey I have a similar problem. I want to use What is the preffered way to get the |
Are you sure you're using the latest version of highcharts? |
@martin-svk, did you try |
@kirjs Yes I think I am. (version 4.2.1). But I am importing the bundled I also tried to import import Highcharts from 'highcharts';
import ReactHighcharts from 'react-highcharts'; but got @lmaccherone Yes, I did exactly this: import ReactHighcharts from 'react-highcharts/bundle/highcharts';
import 'highcharts-exporting';
import 'highcharts-more'; and got |
What if you try using non-bundled version? |
@kirjs As I wrote, I tried to use non-bundled import Highcharts from 'highcharts';
import ReactHighcharts from 'react-highcharts'; but got |
ReachHighcharts expects global Highcharts variable, can you try setting it explicitly? |
Hi, it seems to not work with ES6 global.Highcharts = require('highcharts');
const ReactHighcharts = require('react-highcharts'); // This works For information, I can't even combine the imports like this: global.Highcharts = require('highcharts');
import ReactHighcharts from 'react-highcharts'; // This does not work But that still does not solve my problem (which is to import global.Highcharts = require('highcharts');
global.HighchartsMore = require('highcharts-more');
const ReactHighcharts = require('react-highcharts'); Which don't produce any error but still throwing global.Highcharts = require('highcharts');
global.HighchartsMore = require('highcharts-more');
global.HighchartsExporting = require('highcharts-exporting');
const ReactHighcharts = require('react-highcharts'); But that fails with |
This seems to be more about the modules, I created an issue in another repository: kirjs/publish-highcharts-modules#3 |
@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. |
Thanks John. This is working for me:
On Mon, Jan 25, 2016 at 1:48 PM John Reuning notifications@github.com
|
For what it's worth, this solution works for me:
|
Thank you for this answer. It worked for me, too. |
Here's a VERY clear example of a fully working react app and highcharts-more integration into a component 🎉 🔥 💯 https://kirjs.github.io/react-highcharts/more.html |
Has anyone been able to implement highcharts-more into react-native? |
this way worked for me |
I've tried every possible combination of imports that I can think of but no luck. Here is what I think should work:
The text was updated successfully, but these errors were encountered: