npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rsuite/charts

v6.0.0

Published

Recharts-based chart components styled for React Suite

Readme

Charts for React Suite

:bar_chart: A set of charts based on rsuite and Recharts

npm version Node.js CI codecov semantic-release: angular

v6 — Completely rewritten on top of Recharts. No backward compatibility with v5.

Install

npm i --save @rsuite/charts

Install recharts as well if you want to compose raw recharts primitives directly, for example with ChartContainer:

npm i --save @rsuite/charts recharts

Quick Start

import { BarChart, Bar, XAxis, YAxis, Tooltip, Legend, CartesianGrid } from '@rsuite/charts';

const data = [
  { name: 'Jan', pv: 800, uv: 400 },
  { name: 'Feb', pv: 967, uv: 430 },
  { name: 'Mar', pv: 1098, uv: 448 },
  { name: 'Apr', pv: 1200, uv: 470 },
  { name: 'May', pv: 1108, uv: 540 },
  { name: 'Jun', pv: 680, uv: 380 },
];

function App() {
  return (
    <BarChart height={300} data={data}>
      <CartesianGrid />
      <XAxis dataKey="name" />
      <YAxis />
      <Tooltip />
      <Legend />
      <Bar dataKey="pv" name="Page Views" />
      <Bar dataKey="uv" name="Unique Visitors" />
    </BarChart>
  );
}

Features

  • Built on Recharts — uses the full recharts API; any recharts component works inside our chart wrappers.
  • rsuite color palette — series are automatically colored using the rsuite design-system palette.
  • Responsive by default — every chart wraps with ResponsiveContainer; just set a height.
  • Empty state & loading — built-in placeholders for empty data and loading state.
  • TypeScript — full type definitions.

Available Charts

| Component | Description | | ------------------ | -------------------------- | | <BarChart> | Bar / horizontal bar chart | | <LineChart> | Line chart | | <AreaChart> | Area chart | | <ComposedChart> | Mix of Bar, Line, and Area | | <ScatterChart> | Scatter / bubble chart | | <PieChart> | Pie / donut chart | | <RadarChart> | Radar / spider chart | | <RadialBarChart> | Radial bar chart | | <FunnelChart> | Funnel chart | | <Treemap> | Treemap chart |

Styled Components

Convenience re-exports for common recharts primitives. When you use them inside the @rsuite/charts chart wrappers, rsuite defaults are injected automatically:

| Component | Description | | ----------------- | --------------------------------- | | <XAxis> | X axis (rsuite tick/line style) | | <YAxis> | Y axis (rsuite tick/line style) | | <CartesianGrid> | Horizontal grid lines | | <Tooltip> | Tooltip popup (rsuite card style) | | <Legend> | Chart legend (rsuite text style) | | <Brush> | Data range brush |

Series Components

Re-exported from recharts. Colors are injected automatically when they are used inside the @rsuite/charts chart wrappers:

Bar · Line · Area · Scatter · Pie · Cell · Radar · RadialBar · Funnel

ChartContainer

For full control, use <ChartContainer> to wrap any recharts chart directly. ChartContainer handles layout, loading, empty state, and theme context, but it does not mutate raw recharts children for you:

import { ChartContainer } from '@rsuite/charts';
import { BarChart, Bar, XAxis, YAxis } from 'recharts';

<ChartContainer height={300} loading={isLoading} empty={data.length === 0}>
  <BarChart data={data}>
    <Bar dataKey="value" fill="#34c3ff" />
    <XAxis dataKey="name" />
    <YAxis />
  </BarChart>
</ChartContainer>;

License

MIT licensed