Git Product home page Git Product logo

echarts-next-for-react's Introduction

echarts-next-for-react

Basic CI Publish CI Deploy Site npm  docs by dumi Build With father npm echarts supported react supported

English | δΈ­ζ–‡

Apache ECharts (incubating (v5.x | next)) components for react.

Refer to the echarts-for-react

Demo

1. install

npm install echarts-next-for-react -s

Or

yarn add echarts-next-for-react

2. Code

import EChartsNextForReactCore from 'echarts-next-for-react';

const demo = () => {
  const option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
      type: 'value',
    },
    series: [
      {
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
      },
    ],
  };

  return <EChartsNextForReactCore option={option} />;
};

export default demo();

3. Params

see Apache ECharts.

Tasks

  • [ ]
  • support echarts-gl

LICENSE

MIT

echarts-next-for-react's People

Contributors

bigfacemaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ztopia

echarts-next-for-react's Issues

Registering maps no longer works

Calling echarts.registerMap does not work with this version and echarts 5.0.1. The console says "index.js:1 Map xxxxx not exists. The GeoJSON of the map must be provided". The geojson was provided and the echarts.registerMap was called before creating the echarts element.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.