Socket
Socket
Sign inDemoInstall

d2recharts

Package Overview
Dependencies
10
Maintainers
7
Versions
159
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    d2recharts

data driven react components of echarts


Version published
Weekly downloads
76
decreased by-17.39%
Maintainers
7
Install size
8.21 MB
Created
Weekly downloads
 

Readme

Source

d2recharts

Data Driven echarts wrapped as react components.

what?

data-flow

Why?

To make the path from data to chart shorter.

Install

npm i d2recharts --save

Usage

A typical use case is like:

<D2Pie
    data={[
       {value:335, name:'直接访问'},
       {value:310, name:'邮件营销'},
       {value:234, name:'联盟广告'},
       {value:135, name:'视频广告'},
       {value:1548, name:'搜索引擎'}
    ]}
/>

Simplest use case:

const data = [
    // data goes here
];
<D2RechartsSmart data={data} />

If you want fully functionality of echarts:

const option = {
    // echarts option goes here
};
<D2Recharts option={option} />

Demo

API

Roadmap

Contributing

Thanks to

  • echarts: one of the greatest open source project for graphing.
  • echarts-for-react: where the core react wrapping is stolen from.

Keywords

FAQs

Last updated on 18 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc