less than 1 minute read

img

Note: Sorted by number of downloads. For lower level things use visx or D3.

Also keep an eye on vega + react-vega.

Click on the Example badge to try them.

Recharts

Downloads GitHub stars GitHub last commit Example

recharts recharts
<LineChart width={500} height={300} data={data}>
  <XAxis dataKey="name" />
  <YAxis />
  <CartesianGrid stroke="#eee" strokeDasharray="5 5" />
  <Line type="monotone" dataKey="uv" stroke="#8884d8" />
  <Line type="monotone" dataKey="pv" stroke="#82ca9d" />
</LineChart>

react-chartjs-2

Downloads GitHub stars GitHub last commit Example

chartjs chartjs

Wrapper for Chart.js

<Line data={data} options={options} />

Nivo

Downloads GitHub stars GitHub last commit Example

nivo nivo
<ResponsiveLine data={data} curve="natural" useMesh={true} />

Victory

Downloads GitHub stars GitHub last commit Example

victory

<VictoryChart>
  <VictoryAxis />
  <VictoryAxis dependentAxis />
  <VictoryLine data={data} interpolation="natural" y="votes" />
</VictoryChart>

react-vis

Downloads GitHub stars GitHub last commit Example

react-vis

<XYPlot height={300} width={400}>
  <HorizontalGridLines />
  <XAxis title="X" />
  <YAxis />
  <LineMarkSeries data={data} curve="curveMonotoneX" />
</XYPlot>

echarts-for-react

Downloads GitHub stars GitHub last commit

echarts

Wrapper for echarts.

<ReactEcharts
  option={{
    xAxis: {
      type: "category",
      data: months,
    },
    yAxis: {
      type: "value",
    },
    series: [
      {
        data: data,
        type: "line",
      },
    ],
  }}
/>

react-plotly.js

Downloads GitHub stars GitHub last commit

plotly

Wrapper for plotly

<Plot
  data={[
    {
      x: [1, 2, 3],
      y: [2, 6, 3],
      type: "scatter",
      mode: "lines+markers",
      marker: { color: "red" },
    },
    { type: "bar", x: [1, 2, 3], y: [2, 5, 3] },
  ]}
  layout={{ width: 320, height: 240, title: "A Fancy Plot" }}
/>

BizCharts

Downloads GitHub stars GitHub last commit Example

bizcharts bizcharts
<Chart data={data}>
  <Line position="x*votes" shape="smooth" />
  <Point position="x*votes" />
  <Tooltip showCrosshairs lock />
</Chart>

Most of the documentation is in Chinese.

Comments