Skip to content

ant-design/ant-design-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4dff5d8 · Mar 12, 2025
Sep 1, 2023
Feb 11, 2025
Sep 25, 2024
Mar 12, 2025
May 9, 2020
Aug 26, 2024
Feb 20, 2025
Aug 26, 2024
Feb 11, 2025
Mar 8, 2021
Dec 15, 2019
Oct 15, 2021
Oct 15, 2021
Mar 12, 2025
Sep 1, 2023
Dec 13, 2024
Sep 11, 2024
Apr 1, 2020
Aug 2, 2023
Oct 17, 2023
Apr 28, 2021
Jul 9, 2024
Jan 17, 2022
Dec 12, 2024
Feb 11, 2025
Dec 19, 2024
Dec 22, 2022
Sep 9, 2024

Repository files navigation

@ant-design/charts

A React chart library, based on G2, G6, X6, L7.

npm npm GitHub stars npm License

WebsiteQuick StartExamplesFAQ

Case

Statistical charts

✨ Features

  • Easy to use
  • TypeScript
  • Pretty & Lightweight
  • Responsive
  • Storytelling

📦 Installation

$ npm install @ant-design/charts

🔨 Usage

import React from 'react';
import { Line } from '@ant-design/charts';

const Page: React.FC = () => {
  const data = [
    { year: '1991', value: 3 },
    { year: '1992', value: 4 },
    { year: '1993', value: 3.5 },
    { year: '1994', value: 5 },
    { year: '1995', value: 4.9 },
    { year: '1996', value: 6 },
    { year: '1997', value: 7 },
    { year: '1998', value: 9 },
    { year: '1999', value: 13 },
  ];

  const props = {
    data,
    xField: 'year',
    yField: 'value',
  };

  return <Line {...props} />
};
export default Page;

Preview

Development

Clone locally:

$ git clone git@github.com:ant-design/ant-design-charts.git
$ cd ant-design-charts
$ pnpm install
$ pnpm build:lib & pnpm start

🤝 How to Contribute

Your contributions are always welcome! Please Do have a look at the issues first.

📧 Contact us

DingTalk group number: 44788198 .

License

MIT