Use it ,you can program reguler chart quickly based on d3.js.
For business analysis scenarios
example:
.sort()
to sort bar chart, then get ranking information..hightlight('max', 3)
to get the top three..compare(data)
to compare data with last year.All of the above can be done with animation, you can clearly see the relationship between the data.
The overview idea is as follows.
npm install d3-chart-package
import $chart from 'd3-chart-package'
$chart(dom, data).bar({x: 'field', y: 'value'}).render()
Development mode npm run start
then you can see web page as follows
Publish npm package
npm run build
npm publish