I am trying to set up a Flame chart in react but it is giving me #17 error.
I have tried importing a chart type like so:
Code: Select all
import HighchartsFlame from 'highcharts/modules/flame'
Here is the current code I have for this:
Code: Select all
import Highcharts from 'highcharts/highcharts';
import HighchartsReact from 'highcharts-react-official';
const chartOptions = {
boost: {
enabled: true,
useGPUTranslations: true,
},
plotOptions: {
turboThreshold: 1000,
},
xAxis: [{
visible: false
}, {
visible: false,
startOnTick: false,
endOnTick: false,
minPadding: 0,
maxPadding: 0
}],
yAxis: [{
visible: false
}, {
visible: false,
min: 0,
maxPadding: 0,
startOnTick: false,
endOnTick: false
}],
series: [{
type: 'flame',
data: cycles,
yAxis: 1,
xAxis: 1
}]
// }, projLine]
}
return (
<div>
<HighchartsReact options={chartOptions} highcharts={Highcharts} />
</div>
)