
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
next-chartist
Advanced tools
React Chartist component for Next.js - Create responsive, scalable charts with Chartist.js. React chart library with TypeScript support, SSR compatible, and optimized for Next.js applications.
The best React Chartist component for Next.js - Create beautiful, responsive charts with Chartist.js. Fully compatible with React, Next.js, and TypeScript.
A modern continuation of react-chartist with Next.js support, TypeScript declarations, and enhanced features.
React Chartist | Next.js Charts | React Chart Library | Chartist.js React Component
The most popular React Chartist wrapper for Next.js. Perfect for building responsive charts in React and Next.js applications with full TypeScript support.
🔍 Search terms: react chartist, chartist react, react chart, next chart, next.js chart, react charts, nextjs charts, chartist.js react, react-chartist
📦 NPM Package: https://www.npmjs.com/package/next-chartist
npm install --save next-chartist
Note: Chartist.js 1.5.0 is bundled with this package, so you don't need to install it separately!

First, make sure to include the Chartist CSS in your project:
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css"
/>
import React from 'react'
import NextChartist from 'next-chartist'
const MyChart = () => {
const dataChart = {
labels: ['Speed'],
series: [1000]
}
const options = {
high: 2500,
low: 0,
reverseData: true,
distributeSeries: true,
horizontalBars: true,
chartPadding: {
right: 50
},
axisY: {
offset: 125,
onlyInteger: true
},
axisX: {
onlyInteger: true
}
}
return (
<NextChartist
className='ct-octave'
data={dataChart}
options={options}
type='BarChart'
/>
)
}
export default MyChart
import React from 'react'
import NextChartist from 'next-chartist'
const LineChartExample = () => {
const data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
series: [[5, 2, 4, 2, 0]]
}
const options = {
fullWidth: true,
chartPadding: {
right: 40
}
}
return <NextChartist type='LineChart' data={data} options={options} />
}
import React from 'react'
import NextChartist from 'next-chartist'
const PieChartExample = () => {
const data = {
labels: ['Bananas', 'Apples', 'Grapes', 'Berries'],
series: [20, 10, 30, 40]
}
const options = {
labelInterpolationFnc: function (value) {
return value + '%'
}
}
return <NextChartist type='PieChart' data={data} options={options} />
}
import React from 'react'
import NextChartist from 'next-chartist'
const ChartWithEvents = () => {
const data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
series: [[5, 2, 4, 2, 0]]
}
const listener = {
draw: function (data) {
if (data.type === 'bar') {
data.element.animate({
opacity: {
begin: (data.index + 1) * 80,
dur: 500,
from: 0,
to: 1,
easing: 'easeOutQuart'
}
})
}
}
}
return <NextChartist type='BarChart' data={data} listener={listener} />
}
import React from 'react'
import NextChartist from 'next-chartist'
const ResponsiveChart = () => {
const data = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
series: [[5, 2, 4, 2, 0, 3, 2]]
}
const options = {
fullWidth: true
}
const responsiveOptions = [
[
'screen and (min-width: 640px)',
{
chartPadding: 30,
labelOffset: 100,
labelDirection: 'explode',
labelInterpolationFnc: function (value) {
return value
}
}
],
[
'screen and (min-width: 1024px)',
{
labelOffset: 80,
chartPadding: 20
}
]
]
return (
<NextChartist
type='LineChart'
data={data}
options={options}
responsiveOptions={responsiveOptions}
/>
)
}
This package includes a comprehensive example application in the example/ folder demonstrating all chart types and configurations.
To run the examples locally:
# Navigate to the example folder
cd example
# Install dependencies
npm install
# Start the development server
npm start
The example application includes:
All examples are organized in tabs for easy navigation and showcase the full capabilities of NextChartist with Chartist.js 1.5.
| Prop | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Chart type: 'LineChart', 'BarChart', or 'PieChart' |
data | object | Yes | Chart data with labels and series |
options | object | No | Chart options (supports all Chartist 1.5 options) |
responsiveOptions | array | No | Responsive breakpoint configurations |
className | string | No | CSS class name for the chart container |
style | object | No | Inline styles for the chart container |
listener | object | No | Event listeners object (supports all Chartist events) |
plugins | array | No | Chartist plugins array |
children | node | No | React children |
Looking for a React Chartist component? Need Next.js charts? This is the perfect solution:
If you're searching for:
| Feature | next-chartist | react-chartist | Other React Charts |
|---|---|---|---|
| Next.js Support | ✅ Full SSR | ❌ Limited | ⚠️ Varies |
| TypeScript | ✅ Full Types | ❌ No Types | ⚠️ Partial |
| Chartist 1.5 | ✅ Latest | ⚠️ Older | N/A |
| React Hooks | ✅ Modern | ⚠️ Class-based | ⚠️ Varies |
| Maintenance | ✅ Active | ⚠️ Stale | ⚠️ Varies |
Contributions are welcome! This package aims to be the best React Chartist solution for Next.js developers.
MIT © poboisvert
Keywords for search: react chartist, chartist react, react chart, next chart, next.js chart, react charts, nextjs charts, chartist.js react, react-chartist, react chart library, next.js chart component, chartist react component, react charting library, nextjs chart library, typescript charts react
FAQs
React Chartist component for Next.js - Create responsive, scalable charts with Chartist.js. React chart library with TypeScript support, SSR compatible, and optimized for Next.js applications.
We found that next-chartist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.