8000 GitHub - edgarberm/ECharts-JSX: A real JSX wrapper for ECharts based on TypeScript, which makes it much easier to build Visualization apps with React state system.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A real JSX wrapper for ECharts based on TypeScript, which makes it much easier to build Visualization apps with React state system.

Notifications You must be signed in to change notification settings

edgarberm/ECharts-JSX

 
 

Repository files navigation

ECharts JSX

A real JSX wrapper for ECharts based on TypeScript

CI & CD

NPM

Features

  • All kinds of options can be write in JSX syntax
    • Parallel chart
    • Line chart
    • Scatter chart
    • Bar chart
    • Candle Stick chart
    • Pie chart
    • Radar chart
    • Sunburst chart
    • Gauge chart
    • Tree chart
    • Tree Map chart
    • Sankey chart
    • Heat Map chart
    • Graph chart
    • Funnel chart
    • Theme River chart
  • Async-load required modules automatically

Quick start

Installation

npm i echarts-jsx react react-dom

Simple example

Origin: ECharts official example

Edit ECharts-JSX-demo

import { render } from 'react-dom';
import {
    CanvasCharts,
    Title,
    Legend,
    Tooltip,
    XAxis,
    YAxis,
    BarSeries
} from 'echarts-jsx';

render(
    <CanvasCharts>
        <Title>ECharts Getting Started Example</Title>

        <Legend data={['sales']} />

        <Tooltip />

        <XAxis
            data={[
                'Shirts',
                'Cardigans',
                'Chiffons',
                'Pants',
                'Heels',
                'Socks'
            ]}
        />
        <YAxis />

        <BarSeries name="sales" data={[5, 20, 36, 10, 10, 20]} />
    </CanvasCharts>,
    document.body
);

Inspired by

  1. https://recharts.org/
  2. https://github.com/somonus/react-echarts
  3. https://github.com/idea2app/ECharts-model
  4. https://codesandbox.io/s/echarts-react-yoxstm

User cases

  1. China Open-source Map

About

A real JSX wrapper for ECharts based on TypeScript, which makes it much easier to build Visualization apps with React state system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.4%
  • Shell 0.6%
0