Skip to content

east-century-fex/charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Charts

LICENSE npm

Charts是干什么的?

  • 它是一个基于canvas轻量图表库.

支持

  • 折线图
  • 柱状图
  • 饼状图
  • 雷达图
  • 仪表盘

npm安装

$ npm install @east-century/charts

使用

import Charts from '@east-century/charts'

const container = document.getElementById('container')

const myChart = new Charts(container)

myChart.setOption({
  title: 'My Chart',
  // ...otherConfig
})

详细文档及示例请移步HomePage.

快速体验

<!--资源位于github服务器仅供体验和测试,请勿在生产环境使用-->
<!--调试版-->
<script src="https://github.com/east-century-fex/charts/blob/master/dist/charts.map.js"></script>
<!--压缩版-->
<script src="https://github.com/east-century-fex/charts/blob/master/dist/charts.min.js"></script>
<script>
  const Charts = window.Charts.default
  // do something
</script>