Closed giangiot closed 5 years ago
I ran into some issues here as well, though mine wouldn't render at all with Highstock when trying to add highcharts-more. Here's what I ended up with that worked for Highstock.
Imports
import Highstock from 'highcharts/highstock';
require('highcharts-more')(Highstock);
require('highcharts/modules/exporting')(Highstock);
require('highcharts/modules/export-data.src')(Highstock);
const ReactHighcharts = require('react-highcharts/ReactHighstock').withHighcharts(Highstock);
Render
<ReactHighcharts config={options}/>
Closing and there has been no activity in this issue for a while. if this is still relevant, please feel free to reopen
Hi all, I imported the exporting and export-data modules for export my data in csv in this way.
and the export works like a charm. But if I try to export the data from HighStock, changing only the first line this way:
import ReactHighcharts from "react-highcharts/ReactHighstock";
I receive this error:The chart renders in both ways (with some graphical differences, of course). I cannot find any problem in the highcharts documentation, could this be a problem on how ReactHighcharts.Highcharts is returned? This is my config: