GithubHelp home page GithubHelp logo

movmo / wx-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaolin3303/wx-charts

0.0 2.0 0.0 2.28 MB

微信小程序图表charts组件,Charts for WeChat small app

License: MIT License

JavaScript 100.00%

wx-charts's Introduction

wx-charts

微信小程序图表工具,charts for WeChat small app

基于canvas绘制,体积小巧

持续优化更新中,请保持关注~ 有任何问题欢迎在Issues中讨论,提出issue前请先阅读此须知

支持图表类型

  • 饼图 pie
  • 圆环图 ring
  • 线图 line
  • 柱状图 column
  • 区域图 area
  • 雷达图 radar

代码分析 Here

更新记录

  • 动画性能优化
  • 图表滚动的支持,感谢@jxintang
  • 优化曲线绘制
  • 新增雷达图 2017-03-17
  • 新增tooltip 2017-03-07
  • 新增曲线的绘制 2017-03-06
  • 新增更新数据、终止进行中的动画方法,渲染完成事件回调 2017-02-17
  • 新增圆环图title, subtitle 2017-01-10
  • x轴文案碰撞避让 2016-12-30
  • add pie chart dataLabel 2016-12-19
  • add animation 2016-12-05
  • build with rollup 2016-12-02
  • add legend 2016-11-29

如何使用

1、直接引用编译好的文件 dist/wxcharts.js 或者 dist/wxcharts-min.js

2、自行编译

git clone https://github.com/xiaolin3303/wx-charts.git
npm install rollup -g
npm install
rollup -c 或者 rollup --config rollup.config.prod.js

实际项目中如何具体使用wx-charts 或者 访问wx-charts-demo查看在微信开发工具中直接运行的例子

参数说明

参数说明 - wxCharts使用文档

方法 & 事件

方法 & 事件 - wxCharts使用说明

Example

pieChart ringChart lineChart curveLineChart columnChart areaChart areaChart

pieChart ringChart lineChart columnChart areaChart tooltip scrollLineChart

更多内容请查看Example - wxCharts使用说明

测试

  1. iPhone 6s, IOS 9.3.5
  2. 小米4, ANDORID 6.0.1

兼容性问题请在Issue中提出

一些问题的说明汇总

wx-charts's People

Contributors

foreversc avatar xiaolin3303 avatar

Watchers

 avatar  avatar

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.