Chart An interactive and responsive charting library for React Feb 17, 2020 1 min read @opd/g2plot-react G2Plot for React. View Demo View Github Install npm install @opd/g2plot-react Usage import React, { useCallback } from 'react' import { LineChart } from '@opd/g2plot-react' import { LineConfig } from '@antv/g2plot' const config: LineConfig = { height: 400, title: { visible: true, text: '配置折线数据点样式', }, description: { visible: true, text: '自定义配置趋势线上数据点的样式', }, padding: 'auto', forceFit: true, xField: 'year', yField: 'value', label: { visible: true, type: 'point', }, point: { visible: true, size: 5, }, xAxis: { tickCount: 10, }, 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: 11 }, ], } export default () => { const handleChartMount = useCallback(chart => { console.log(chart) }, []) return <LineChart {...config} onMount={handleChartMount} /> } React TSX API All config defined in G2Plot document can be used as props Extra Props: onMount: (chart: Plot) => void. triggered after chart render Develop npm install npm run build GitHub open-data-plan/g2plot-react8214G2Plot for React — Read Morehttps://g2plot.opd.cool/Latest commit to the master branch on 3-31-2025Download as zip Chart
Chart A versatile React component based on the yFiles library Introducing the yFiles React Organization Chart Component, an advanced React component built upon the robust yFiles library. 17 February 2024
Chart Draw statistic charts: Line, Bar, Area, Pie, Donut, Radar, etc, like an expert Draw statistic charts: Line, Bar, Area, Pie, Donut, Radar, etc, like an expert 03 January 2024
Chart A highly customizable stock trade chart with one dependency written in JavaScript A highly customizable stock trade chart with one dependency written in JavaScript 09 November 2023