react-jsx-highcharts: BubbleSeries not working
Hi @whawker ,
I am working with Bubble series and its not generating the chart. If I change the series type to any other type(E.g. Scatter), it works fine. I am not sure if I am passing the data correctly or its some other issue. Please help.
This is the below code:
import React, { Component } from 'react';
import {
HighchartsChart, Chart, XAxis, YAxis, Tooltip, Legend, BubbleSeries, ScatterSeries
} from 'react-jsx-highcharts';
class CompetitiveLandscape extends Component {
render() {
const plotOptions = {
};
const data = [
[154, 97, 100]
];
return (
<div className="chartApp">
<HighchartsChart plotOptions={plotOptions}>
<Chart zoomType="xy" />
<XAxis name="Month">
<XAxis.Title>Year-Month</XAxis.Title>
</XAxis>
<YAxis id="number">
<YAxis.Title>Basic VS. Premium</YAxis.Title>
<BubbleSeries id="Premium" name="Premium" color="#e96c39" data={data} />
</YAxis>
<Legend />
<Tooltip backgroundColor="white" shadow={false}></Tooltip>
</HighchartsChart>
</div>
);
}
}
export default CompetitiveLandscape;
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (8 by maintainers)
Ok you can either assume the
datevalues, and add them as an XAxis categoryOr use something like lodash.zip to combine the
dateandvaluearrays into a multidimensional array.Bubble series require the
highcharts-moreextension (see here to see what else “more” provides)You should be able to include it by