highcharts-react-official vs react-highcharts vs react-chartjs-2 vs recharts
React Charting Libraries: Architecture, Maintenance, and API Design Compared
highcharts-react-officialreact-highchartsreact-chartjs-2rechartsSimilar Packages:

React Charting Libraries: Architecture, Maintenance, and API Design Compared

highcharts-react-official, react-chartjs-2, react-highcharts, and recharts are all React libraries for rendering data visualizations, but they differ significantly in architecture, maintenance status, and underlying charting engines. highcharts-react-official is the official React wrapper for Highcharts, maintained by the Highcharts team. react-chartjs-2 wraps Chart.js, a popular open-source canvas-based charting library. react-highcharts is a community-maintained wrapper for Highcharts that is no longer actively developed. recharts is a composable charting library built on D3 and React, using SVG rendering. Each serves different use cases depending on licensing needs, customization requirements, and project constraints.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
highcharts-react-official436,2281,173241 kB196 months agoMIT
react-highcharts6,4411,257-636 years ago-
react-chartjs-206,92455.1 kB1055 months agoMIT
recharts026,8566.7 MB43416 days agoMIT

React Charting Libraries: Architecture, Maintenance, and API Design Compared

When building data visualizations in React, you have several options, each with distinct trade-offs in licensing, rendering approach, and maintenance status. Let's examine how highcharts-react-official, react-chartjs-2, react-highcharts, and recharts handle common charting scenarios.

⚠️ Maintenance Status: Active vs Deprecated

highcharts-react-official is actively maintained by the Highcharts team.

  • Official wrapper with guaranteed compatibility
  • Regular updates alongside Highcharts core
  • Commercial license required for most business use
// highcharts-react-official: Current and supported
import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts';

function Chart() {
  const options = {
    series: [{ data: [1, 2, 3] }]
  };
  return <HighchartsReact highcharts={Highcharts} options={options} />;
}

react-chartjs-2 is actively maintained by the community.

  • Wraps Chart.js v3+ with React hooks
  • Fully open-source (MIT license)
  • Good for standard chart types
// react-chartjs-2: Current and supported
import { Line } from 'react-chartjs-2';
import { Chart as ChartJS, LineElement, CategoryScale } from 'chart.js';

ChartJS.register(LineElement, CategoryScale);

function Chart() {
  const data = { labels: ['A', 'B'], datasets: [{ data: [1, 2] }] };
  return <Line data={data} />;
}

react-highcharts is deprecated and no longer maintained.

  • Last update was several years ago
  • Superseded by highcharts-react-official
  • Should NOT be used in new projects
// react-highcharts: DEPRECATED - Do not use
// This package is no longer maintained
// Migrate to highcharts-react-official instead
import ReactHighcharts from 'react-highcharts';

function Chart() {
  const config = { series: [{ data: [1, 2, 3] }] };
  return <ReactHighcharts config={config} />; // Legacy API
}

recharts is actively maintained with strong community support.

  • Built specifically for React (not a wrapper)
  • SVG-based rendering
  • Fully open-source (MIT license)
// recharts: Current and supported
import { LineChart, Line, XAxis, YAxis } from 'recharts';

function Chart() {
  const data = [{ x: 'A', y: 1 }, { x: 'B', y: 2 }];
  return (
    <LineChart width={400} height={300} data={data}>
      <XAxis dataKey="x" />
      <YAxis />
      <Line dataKey="y" />
    </LineChart>
  );
}

🎨 Rendering Engine: Canvas vs SVG

highcharts-react-official uses SVG rendering through Highcharts.

  • Crisp visuals at any zoom level
  • Better for interactive elements and tooltips
  • Larger DOM footprint for complex charts
// highcharts-react-official: SVG-based
import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts';

function Chart() {
  const options = {
    chart: { type: 'line' },
    series: [{ data: [1, 2, 3, 4, 5] }],
    // SVG allows direct DOM manipulation if needed
  };
  return <HighchartsReact highcharts={Highcharts} options={options} />;
}

react-chartjs-2 uses Canvas rendering through Chart.js.

  • Better performance for large datasets
  • Less interactive flexibility than SVG
  • Smaller DOM footprint (single canvas element)
// react-chartjs-2: Canvas-based
import { Line } from 'react-chartjs-2';

function Chart() {
  const data = {
    labels: ['Jan', 'Feb', 'Mar'],
    datasets: [{
      label: 'Sales',
      data: [10, 20, 30],
      borderColor: 'rgb(75, 192, 192)'
    }]
  };
  // Canvas renders everything to single element
  return <Line data={data} options={{ responsive: true }} />;
}

react-highcharts used SVG rendering (same as Highcharts).

  • Same rendering as highcharts-react-official
  • Deprecated wrapper, same underlying engine
// react-highcharts: SVG-based (deprecated)
import ReactHighcharts from 'react-highcharts';

function Chart() {
  const config = {
    chart: { type: 'line' },
    series: [{ data: [1, 2, 3] }]
  };
  return <ReactHighcharts config={config} />;
}

recharts uses SVG rendering built on D3.

  • Composable SVG components
  • Easy to customize with React patterns
  • Can become slow with very large datasets
// recharts: SVG-based with composable components
import { LineChart, Line, CartesianGrid, Tooltip } from 'recharts';

function Chart() {
  const data = [{ name: 'A', value: 10 }, { name: 'B', value: 20 }];
  return (
    <LineChart width={500} height={300} data={data}>
      <CartesianGrid strokeDasharray="3 3" />
      <Tooltip />
      <Line type="monotone" dataKey="value" stroke="#8884d8" />
    </LineChart>
  );
}

πŸ“¦ API Design: Configuration Objects vs Composable Components

highcharts-react-official uses configuration objects.

  • Pass all chart settings in one options object
  • Familiar to Highcharts users
  • Less React-idiomatic but very powerful
// highcharts-react-official: Configuration object approach
import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts';

function Chart() {
  const options = {
    title: { text: 'Monthly Sales' },
    xAxis: { categories: ['Jan', 'Feb', 'Mar'] },
    yAxis: { title: { text: 'Revenue' } },
    series: [{
      name: 'Sales',
      data: [100, 150, 200],
      type: 'column'
    }]
  };
  return <HighchartsReact highcharts={Highcharts} options={options} />;
}

react-chartjs-2 uses configuration objects with React components.

  • Chart type determines component (Line, Bar, Pie)
  • Data and options separated
  • Requires Chart.js registration of components
// react-chartjs-2: Component + config approach
import { Bar } from 'react-chartjs-2';
import { Chart as ChartJS, CategoryScale, LinearScale, BarElement } from 'chart.js';

ChartJS.register(CategoryScale, LinearScale, BarElement);

function Chart() {
  const data = {
    labels: ['Jan', 'Feb', 'Mar'],
    datasets: [{
      label: 'Revenue',
      data: [100, 150, 200],
      backgroundColor: 'rgba(54, 162, 235, 0.5)'
    }]
  };
  const options = { responsive: true, plugins: { legend: { position: 'top' } } };
  return <Bar data={data} options={options} />;
}

react-highcharts used configuration objects (legacy).

  • Similar API to highcharts-react-official
  • Deprecated, do not use in new code
// react-highcharts: Configuration object (legacy)
import ReactHighcharts from 'react-highcharts';

function Chart() {
  const config = {
    title: { text: 'Sales Data' },
    series: [{ data: [1, 3, 2, 4] }]
  };
  return <ReactHighcharts config={config} />;
}

recharts uses composable React components.

  • Most React-idiomatic approach
  • Each chart element is a component
  • Easy to conditionally render parts
// recharts: Composable component approach
import {
  LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend
} from 'recharts';

function Chart() {
  const data = [
    { month: 'Jan', revenue: 100, profit: 30 },
    { month: 'Feb', revenue: 150, profit: 45 },
    { month: 'Mar', revenue: 200, profit: 60 }
  ];
  return (
    <LineChart width={600} height={400} data={data}>
      <CartesianGrid strokeDasharray="3 3" />
      <XAxis dataKey="month" />
      <YAxis />
      <Tooltip />
      <Legend />
      <Line type="monotone" dataKey="revenue" stroke="#8884d8" />
      <Line type="monotone" dataKey="profit" stroke="#82ca9d" />
    </LineChart>
  );
}

πŸ”„ Handling Dynamic Data Updates

highcharts-react-official handles updates through options changes.

  • Uses shouldUpdateCallback to control re-renders
  • Can access chart instance via ref for imperative updates
// highcharts-react-official: Controlled updates
import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts';
import { useRef } from 'react';

function Chart({ data }) {
  const chartRef = useRef(null);
  const options = { series: [{ data }] };
  
  const shouldUpdate = (prevProps, nextProps) => {
    return prevProps.data !== nextProps.data;
  };
  
  return (
    <HighchartsReact
      ref={chartRef}
      highcharts={Highcharts}
      options={options}
      shouldUpdate={shouldUpdate}
    />
  );
}

react-chartjs-2 handles updates through React state.

  • Chart auto-updates when data/props change
  • Use chart ref for imperative API access
// react-chartjs-2: State-driven updates
import { Line } from 'react-chartjs-2';
import { useState } from 'react';

function Chart() {
  const [data, setData] = useState({
    labels: ['A', 'B'],
    datasets: [{ data: [1, 2] }]
  });
  
  const updateData = () => {
    setData(prev => ({
      ...prev,
      datasets: [{ ...prev.datasets[0], data: [2, 3] }]
    }));
  };
  
  return <Line data={data} />;
}

react-highcharts handled updates similarly (deprecated).

  • Same pattern as official wrapper
  • No longer receiving updates or fixes
// react-highcharts: State-driven (deprecated)
import ReactHighcharts from 'react-highcharts';
import { useState } from 'react';

function Chart() {
  const [data, setData] = useState([1, 2, 3]);
  const config = { series: [{ data }] };
  return <ReactHighcharts config={config} />;
}

recharts handles updates through React state naturally.

  • Fully reactive to prop changes
  • Built-in animation on data changes
  • No special update handling needed
// recharts: Natural React reactivity
import { LineChart, Line } from 'recharts';
import { useState } from 'react';

function Chart() {
  const [data, setData] = useState([
    { x: 'A', y: 1 },
    { x: 'B', y: 2 }
  ]);
  
  const updateData = () => {
    setData([{ x: 'A', y: 2 }, { x: 'B', y: 3 }]);
  };
  
  // Animates automatically on data change
  return (
    <LineChart width={400} height={300} data={data}>
      <Line dataKey="y" isAnimationActive={true} />
    </LineChart>
  );
}

πŸ’° Licensing and Cost Considerations

highcharts-react-official requires commercial licensing for most business use.

  • Free for personal and non-profit projects
  • Commercial licenses start at $450/year
  • Includes support and legal protection
// highcharts-react-official: Check license requirements
// Before using in production, verify your license status
// Visit highcharts.com/products/licensing for details

import HighchartsReact from 'highcharts-react-official';
// Ensure you have valid license for commercial deployment

react-chartjs-2 is fully open-source (MIT license).

  • Free for any use case
  • No licensing concerns
  • Community support only
// react-chartjs-2: MIT licensed
// Free for commercial and personal use
import { Line } from 'react-chartjs-2';
// No license verification needed

react-highcharts had same licensing as Highcharts (deprecated).

  • Same licensing requirements as official wrapper
  • No longer maintained, making license compliance risky
// react-highcharts: Same licensing, but deprecated
// Not recommended due to lack of maintenance

recharts is fully open-source (MIT license).

  • Free for any use case
  • No licensing concerns
  • Strong community support
// recharts: MIT licensed
// Free for commercial and personal use
import { LineChart } from 'recharts';
// No license verification needed

πŸ“Š Summary: Key Differences

Featurehighcharts-react-officialreact-chartjs-2react-highchartsrecharts
Statusβœ… Activeβœ… Active❌ Deprecatedβœ… Active
LicenseCommercialMITCommercialMIT
RenderingSVGCanvasSVGSVG
API StyleConfig ObjectConfig + ComponentConfig ObjectComposable Components
Chart Types80+ built-in~10 basic types80+ built-in~15 types
React IntegrationWrapperWrapperWrapperNative
Best ForEnterprise dashboardsBudget projectsLegacy migrationCustom React apps

πŸ’‘ The Big Picture

highcharts-react-official is like a premium toolkit 🧰 β€” comprehensive, well-supported, but comes with licensing costs. Best for enterprise applications where budget allows and you need advanced chart types.

react-chartjs-2 is like a reliable workhorse 🐴 β€” free, performant, covers common needs well. Best for startups, open-source projects, and applications with standard chart requirements.

react-highcharts is like an old map πŸ—ΊοΈ β€” still shows the terrain, but roads have changed. Do not use in new projects; migrate existing code to highcharts-react-official.

recharts is like building with LEGO blocks 🧱 β€” composable, React-native, fully customizable. Best for applications where chart design needs to match your app's unique style and you want full React integration.

Final Thought: Your choice depends on three factors β€” budget (licensing), technical needs (chart types and performance), and team preferences (configuration vs composable APIs). For most new projects without enterprise requirements, recharts or react-chartjs-2 offer the best balance of features and flexibility.

How to Choose: highcharts-react-official vs react-highcharts vs react-chartjs-2 vs recharts

  • highcharts-react-official:

    Choose highcharts-react-official if you need enterprise-grade charts with extensive built-in features, professional support, and don't mind commercial licensing for non-personal projects. This is the officially maintained wrapper from Highcharts, ensuring compatibility with the latest Highcharts versions. Ideal for dashboards, financial applications, and projects requiring advanced chart types like stock charts, maps, or Gantt charts.

  • react-highcharts:

    Avoid react-highcharts for new projects. This package is no longer actively maintained and has been superseded by highcharts-react-official. If you encounter this in legacy codebases, plan to migrate to the official wrapper. Only consider this if you're maintaining an existing application that already depends on it and migration isn't feasible.

  • react-chartjs-2:

    Choose react-chartjs-2 if you want a free, open-source solution with good performance for standard chart types. Chart.js uses canvas rendering, which handles large datasets well. Best for projects needing basic to intermediate charts (line, bar, pie, doughnut) without licensing concerns. Suitable for startups, open-source projects, and applications where budget is a constraint.

  • recharts:

    Choose recharts if you want a React-native approach with composable components and SVG rendering. It integrates naturally with React's component model and is fully open-source. Best for applications requiring custom chart compositions, animations, and tight React integration. Ideal for data-heavy dashboards where you need fine-grained control over chart elements and styling.

README for highcharts-react-official

Highcharts React

Official minimal Highcharts integration for React.

Note: v4 of the Highcharts React integration is now available at @highcharts/react

Table of Contents

  1. Getting started
    1. General prerequisites
    2. Installing
    3. Using
      1. Basic usage example
      2. Highcharts with NextJS
      3. Highcharts with TypeScript
      4. Optimal way to update
  2. Options details
  3. Example with custom chart component
  4. Get repository
  5. Examples
  6. Tests
  7. Changelog
  8. FAQ
    1. Where to look for help?
    2. Why highcharts-react-official and not highcharts-react is used?
    3. How to get a chart instance?
    4. How to add a module?
    5. How to add React component to a chart's element?
    6. Why Highcharts mutates my data?

Getting Started

General prerequisites

Make sure you have node, NPM and React up to date. Tested and required versions:

  • node 8.11.3+
  • npm 6.4.1+ or similar package manager

This integration also requires highcharts and react packages with the following versions installed in your project:

For version 2.x.x :

  • react 16.4+
  • highcharts 5.0.0+

For version 3.x.x :

  • react 16.8+
  • highcharts 6.0.0+

Installing

Get the package from NPM in your React app:

npm install highcharts-react-official

If Highcharts is not already installed, get the package with Highcharts:

npm install highcharts highcharts-react-official

Using

Basic usage example

Import into your React project and render a chart:

import React from 'react'
import { render } from 'react-dom'
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'

const options = {
  title: {
    text: 'My chart'
  },
  series: [{
    data: [1, 2, 3]
  }]
}

const App = () => <div>
  <HighchartsReact
    highcharts={Highcharts}
    options={options}
  />
</div>

render(<App />, document.getElementById('root'))

Highcharts with TypeScript

Live example: https://stackblitz.com/edit/react-starter-typescript-cfcznt

import React, { useRef } from 'react';
import * as Highcharts from 'highcharts';
import { HighchartsReact } from 'highcharts-react-official';

// The integration exports only a default component that at the same time is a
// namespace for the related Props interface (HighchartsReact.Props) and
// RefObject interface (HighchartsReact.RefObject). All other interfaces
// like Options come from the Highcharts module itself.

const options: Highcharts.Options = {
    title: {
        text: 'My chart'
    },
    series: [{
        type: 'line',
        data: [1, 2, 3]
    }]
};

const App = (props: HighchartsReact.Props) => {
  const chartComponentRef = useRef<HighchartsReact.RefObject>(null);

  return (
    <HighchartsReact
      highcharts={Highcharts}
      options={options}
      ref={chartComponentRef}
      {...props}
    />
  );
};
// Render your App component into the #root element of the document.
ReactDOM.render(<App />, document.getElementById('root'));

Since version 3.2.1 it is also possible to import types for props and ref independently:

import HighchartsReact, { HighchartsReactRefObject, HighchartsReactProps } from 'highcharts-react-official';

Highcharts with NextJS

Next.js executes code twice - on server-side and then client-side. First run is done in an environment that lacks window and causes Highcharts to be loaded, but not initialized. Easy fix is to place all modules inits in a if checking if Highcharts is an object or a function. It should be an object for modules initialization to work without any errors, so code like below is an easy fix:

import React from 'react'
import Highcharts from 'highcharts'
import HighchartsExporting from 'highcharts/modules/exporting'
import HighchartsReact from 'highcharts-react-official'

if (typeof Highcharts === 'object') {
    HighchartsExporting(Highcharts)
}

...

This is a know issue with NextJS and is covered here: https://github.com/vercel/next.js/issues/5354

Optimal way to update

A good practice is to keep all chart options in the state. When setState is called, the options are overwritten and only the new ones are passed to the chart.update method.

Live example: https://stackblitz.com/edit/react-hketvd?file=index.js

Optimal way to update with React Hooks: https://stackblitz.com/edit/react-nwseym?file=index.js

import React, { Component } from 'react';
import { render } from 'react-dom';
import HighchartsReact from 'highcharts-react-official';
import Highcharts from 'highcharts';

class LineChart extends Component {
  constructor(props) {
    super(props);

    this.state = {
      // To avoid unnecessary update keep all options in the state.
      chartOptions: {
        xAxis: {
          categories: ['A', 'B', 'C'],
        },
        series: [
          { data: [1, 2, 3] }
        ],
        plotOptions: {
          series: {
            point: {
              events: {
                mouseOver: this.setHoverData.bind(this)
              }
            }
          }
        }
      },
      hoverData: null
    };
  }

  setHoverData = (e) => {
    // The chart is not updated because `chartOptions` has not changed.
    this.setState({ hoverData: e.target.category })
  }

  updateSeries = () => {
    // The chart is updated only with new options.
    this.setState({
      chartOptions: {
        series: [
          { data: [Math.random() * 5, 2, 1]}
        ]
      }
    });
  }

  render() {
    const { chartOptions, hoverData } = this.state;

    return (
      <div>
        <HighchartsReact
          highcharts={Highcharts}
          options={chartOptions}
        />
      <h3>Hovering over {hoverData}</h3>
      <button onClick={this.updateSeries.bind(this)}>Update Series</button>
      </div>
    )
  }
}

render(<LineChart />, document.getElementById('root'));

Options details

Available options with example values:

  <HighchartsReact
    options = { this.state.chartOptions }
    highcharts = { Highcharts }
    constructorType = { 'mapChart' }
    allowChartUpdate = { true }
    immutable = { false }
    updateArgs = { [true, true, true] }
    containerProps = {{ className: 'chartContainer' }}
    callback = { this.chartCallback }
  />
ParameterTypeRequiredDefaultsDescription
optionsObjectyes-Highcharts chart configuration object. Please refer to the Highcharts API documentation.
highchartsObjectyes-Used to pass the Highcharts instance after modules are initialized. If not set the component will try to get the Highcharts from window.
constructorTypeStringno'chart'String for constructor method. Official constructors:
- 'chart' for Highcharts charts
- 'stockChart' for Highstock charts
- 'mapChart' for Highmaps charts
- 'ganttChart' for Gantt charts
allowChartUpdateBooleannotrueThis integration uses chart.update() method to apply new options to the chart when changing the parent component. This option allow to turn off the updating.
immutableBooleannofalseReinitialises the chart on prop update (as oppose to chart.update()) - useful in some cases but slower than a regular update.
updateArgsArrayno[true, true, true]Array of update()'s function optional arguments. Parameters should be defined in the same order like in native Highcharts function: [redraw, oneToOne, animation]. Here is a more specific description of the parameters.
containerPropsObjectno-The props object passed to the chart container in React.createElement method. Useful for adding styles or class.
callbackFunctionno-A callback function for the created chart. First argument for the function will hold the created chart. Default this in the function points to the chart. This option is optional.

Example with custom chart component

Create custom component ./components/MyStockChart.jsx:

import React from 'react'
import Highcharts from 'highcharts/highstock'
import HighchartsReact from 'highcharts-react-official'

const options = {
  title: {
    text: 'My stock chart'
  },
  series: [{
    data: [1, 2, 3]
  }]
}

const MyStockChart = () => <HighchartsReact
  highcharts={Highcharts}
  constructorType={'stockChart'}
  options={options}
/>

export default MyStockChart

Render your custom chart component like below:

import React from 'react'
import { render } from 'react-dom'
import MyStockChart from './components/MyStockChart.jsx'

const App = () => <div>
  <MyStockChart />
</div>

render(<App />, document.getElementById('root'))

Get repository

Clone github repository and install dependencies:

git clone https://github.com/highcharts/highcharts-react
cd highcharts-react
npm install

Examples and tests require Highcharts library, don't forget to:

npm install highcharts

Examples

There are several interesting examples in the demo folder that use all available constructors and several modules.

Bundle these with:

npm run build-demo

Demo is located under demo/index.html

Live example: https://stackblitz.com/edit/react-4ded5d?file=index.js

Tests

This integration contains tests for: testing environment, chart rendering and passing down container props. To run tests, type:

npm run test

Changelog

The changelog is available here.

FAQ

Where to look for help?

Technical support will help you with Highcharts and with the integration.

If you have a bug to report or an enhancement suggestion please submit Issues in this repository.

Why highcharts-react-official and not highcharts-react is used?

The NPM package is registered as highcharts-react-official because highcharts-react was already taken.

How to get a chart instance?

For class components and version prior to 3.0.0 use React.createRef:

constructor(props) {
  super(props)
  this.chartRef = React.createRef();
}

render() {
  return (
    <HighchartsReact
      highcharts={ Highcharts }
      options={ options }
      ref={ this.chartRef }
    />
  );
}

For functional components and version 3.0.0 and later use useRef hook:

  const chartComponent = useRef(null);
  const [options] = useState({...});

  useEffect(() => {
    const chart = chartComponent.current.chart;
    ...
  }, []);

  return <HighchartsReact ref={chartComponent} highcharts={Highcharts} options={options} />;

Alternatively store a chart reference in a callback function:

afterChartCreated = (chart) => {
  // Highcharts creates a separate chart instance during export
  if (!chart.options.chart.forExport) {
    this.internalChart = chart;
  }
}

componentDidMount() {
  // example of use
  this.internalChart.addSeries({ data: [1, 2, 3] })
}

render() {
  return (
    <div>
      <h2>Highcharts</h2>
      <HighchartsReact
        highcharts={ Highcharts }
        options={ options }
        callback={ this.afterChartCreated }
      />
    </div>
  );
}

How to add a module?

To add a module, import it like so:

import Highcharts from 'highcharts'
import highchartsGantt from "highcharts/modules/gantt"; // The Gantt module
import HighchartsReact from 'highcharts-react-official'

// Init the module (only for Highcharts v < 12)
if (typeof highchartsGantt === 'function') {
  highchartsGantt(Highcharts);
}

How to add React component to a chart's element?

By using Portals it is possible to add a component to every HTML chart element.

Live example: https://codesandbox.io/s/1o5y7r31k3

Why Highcharts mutates my data?

It can be confusing, since React props are read-only, but Highcharts for performance reasons mutates the original data array. This behaviour is NOT changed by our integration. You need to pass a copy of your data to the integration if you want to prevent mutations.

Issue: https://github.com/highcharts/highcharts-react/issues/326
More discussion here: https://github.com/highcharts/highcharts/issues/4259