Giter Site home page Giter Site logo

alitajs / rc-charts Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 6.0 1.22 MB

一个基于BizCharts的图表库

Home Page: https://rc-charts.now.sh

License: MIT License

TypeScript 96.00% CSS 3.92% Shell 0.08%
react-component react-chart typescript chart bizcharts g2 alita

rc-charts's Introduction

rc-charts

该项目归档,推荐使用 ant-design-charts

封装BizCharts

NPM version NPM downloads

项目由来: BizCharts 使用起来相对比较繁琐,比较难于在项目在推广,故封装下常见的图表,简化使用方式,减少学习成本。

特性

  • 💡 TypeScript: 使用TypeScript编写
  • 🎉 基于BizCharts: 阿里出品
  • 🌴 简单易用: 针对常见图表二次封装,可傻瓜式使用
  • 🍁 示例丰富: 尽可能多的提供图表示例

使用

  • 安装
yarn add rc-charts
  • 使用
import { Bar } form 'rc-charts';

const Example: React.FC = () => {
  return (
    <Bar
      data={
        [
          { x: '1951', y1: 20 },
          { x: '1952', y1: 10 },
          { x: '1953', y1: 20 },
          { x: '1954', y1: 100 },
          { x: '1955', y1: 10 },
          { x: '1956', y1: 50 }
        ]
      }
      titleMap={{
        y1: '销售额'
      }}
    />
  )
}

export default Example;

rc-charts's People

Contributors

hang1017 avatar nsne avatar wangxingkang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rc-charts's Issues

v1版本开发计划

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.