suyiScreen/node_modules/@jiaminghi/charts
lixiaobang 18ece3f395 代码提交 2023-02-06 08:46:29 +08:00
..
build 代码提交 2023-02-06 08:46:29 +08:00
deploy 代码提交 2023-02-06 08:46:29 +08:00
dist 代码提交 2023-02-06 08:46:29 +08:00
lib 代码提交 2023-02-06 08:46:29 +08:00
src 代码提交 2023-02-06 08:46:29 +08:00
.babelrc 代码提交 2023-02-06 08:46:29 +08:00
CHANGELOG.md 代码提交 2023-02-06 08:46:29 +08:00
LICENSE 代码提交 2023-02-06 08:46:29 +08:00
README.md 代码提交 2023-02-06 08:46:29 +08:00
README_EN.md 代码提交 2023-02-06 08:46:29 +08:00
package.json 代码提交 2023-02-06 08:46:29 +08:00

README_EN.md

中文

Charts

LICENSE LICENSE

What is Charts?

  • It is a lightweight chart library based on canvas.

Provides

  • line
  • bar
  • pie
  • radar
  • gauge

Install with npm

$ npm install @jiaminghi/charts

Use

import Charts from '@jiaminghi/charts'

const container = document.getElementById('container')

const myChart = new Charts(container)

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

Detailed documents and examples can be viewed on the HomePage.

Quick experience

<!--Resources are located on personal servers for experience and testing only, do not use in production environments-->
<!--Debug version-->
<script src="http://lib.jiaminghi.com/charts/charts.map.js"></script>
<!--Compression version-->
<script src="http://lib.jiaminghi.com/charts/charts.min.js"></script>
<script>
  const Charts = window.Charts.default
  // do something
</script>