@highcharts/react
Version:
Official Highcharts integration for React
38 lines (27 loc) • 1.01 kB
Markdown
* Fixed issues with series components relying on bundles such as `highcharts-more`
* Changed the `container` property for the passed `ref` to be the container element and not the internal ref
* Added back `containerProps` prop from previous versions
* Changed the type of the `ref` prop to `React.ref`
* Removed debug logging by default. Logging can be enabled using the `Logger`
object exported from i.e. `Highcharts.jsx`
* Added the `ref` prop to the `Chart` components, which will be assigned to the
chart instance and container element as in previous versions. Example:
```jsx
import { Chart } from '@highcharts/react';
function RefExample(){
const ref = useRef();
useEffect(() => {
if (ref.current.chart) {
// Do something with the chart instance
}
},[])
return (<Chart ref={ref} />);
}
```
Initial beta of the reworked Highcharts React integration.