Description
react-apexcharts is a React wrapper for ApexCharts, for building interactive charts in React apps. You install it from npm and render a chart with a series, a chart type and an options object. Charts support line, area, bar, pie, donut, scatter, bubble, heatmap and radial bar types, and the width and height can be a percentage or a pixel value. When you change the series or any option, the chart re-renders automatically. A chartRef prop gives you the underlying ApexCharts instance for imperative calls, and the README shows how to call its methods on the global ApexCharts object. Since version 2.0.0, the wrapper supports server-side rendering with Next.js 13 and later using the App Router, with ApexCharts 5.5.0 or later. You can render a chart as a server component for a faster first load, combine server rendering with client-side hydration, or keep it client-only. Version 2.1.0 adds a /core export for tree-shaking, which imports only the chart types and features you use and needs ApexCharts 5.10.1 or later. The README notes a Vite setting that prevents two ApexCharts instances from loading when both import styles are used. The project is open source on GitHub and includes an example project for each usage pattern.…
Highlights
- React wrapper for ApexCharts
- Line, bar, pie, heatmap and more chart types
- Server-side rendering with Next.js App Router
- Tree-shaking with the /core export
- chartRef for imperative API calls
Ratings & Reviews
No ratings yet
Be the first to rate react-apexcharts.
People also visit
react-apexcharts FAQ
What does react-apexcharts do?
It wraps ApexCharts as a React component, so you can build interactive charts with a series and an options object.
Does it support server rendering?
Yes. Since version 2.0.0 it supports server-side rendering with Next.js 13 and later using the App Router.
How do I make the bundle smaller?
Use the /core export, added in version 2.1.0, which imports only the chart types you use. It needs ApexCharts 5.10.1 or later.
How do I update a chart?
Change the series or any option, and the chart re-renders automatically.
How do I install it?
Install from npm as shown in the README's download and installation section.
What are the best react-apexcharts alternatives?
Popular alternatives to react-apexcharts include echarts for react, react-google-charts and react-chartjs. See all react-apexcharts alternatives



















