Flame chart in React
Posted: Thu Mar 18, 2021 5:04 pm
Hi,
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:
but there is no such module named 'flame', is it under a different name or is it even implemented?
Here is the current code I have for this:
Thank you in advance!!! You guys have developed a great product and I love using it
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>
)