- It is a
lightweight
chart library based on canvas.
line
bar
pie
radar
gauge
$ npm install @jiaminghi/charts
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.
<!--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>