GithubHelp home page GithubHelp logo

gholdzhang / cloud-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alibaba/cloud-charts

0.0 0.0 0.0 7.87 MB

开箱即用的前端图表库,简单配置就能拥有漂亮的可视化图表

Home Page: http://cloud-charts.gitee.io/

License: MIT License

JavaScript 26.35% CSS 0.13% SCSS 10.33% TypeScript 63.19%

cloud-charts's Introduction

CloudCharts

CloudCharts

面向中后台的开箱即用图表库,让前端图表更简单。

WebSite | 国内镜像

  • 简单上手,开箱即用。

  • React ES6 语法。

  • 配置化图表,无需学习 G2 复杂的语法和数据映射。

  • 一键切换主题。

1.0 全新来袭

详细信息

  • 全面拥抱 TypeScript

  • 交互能力增强

  • 平滑升级保障

  • 大量优化迭代

安装

$ npm install @alicloud/cloud-charts --save

使用

1、 引入图表需要的组件

2、 传入数据和配置项

import { Wcontainer, Wbar } from '@alicloud/cloud-charts';

// 准备一份数据列
const data = [
  {
    "name":"柱1",
    "data":[["一",59],["二",23],["三",19],["四",27],["五",77],["六",100],["七",70],["八",61],["九",15]]
  },
  {
    "name":"柱2",
    "data":[["一",92],["二",15],["三",4],["四",49],["五",64],["六",76],["七",21],["八",100],["九",71]]
  }
];

// 图表配置项
const options = {
  legend:{
    align: 'right'
  }
};

// 轻松绘制
function Demo() {
  return (
    <Wcontainer className="demos">
      <Wbar height="400" config={options} data={data} />
    </Wcontainer>
  );
}

一张柱状图就绘制成功了。

参与贡献

如果您在使用的过程中碰到问题,可以先通过 Issues 看看有没有类似的 bug 或者建议。

如需提交代码,请遵从我们的 贡献指南

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.