使用ECharts来画图
hexo-tag-easy-charts
The easy to use chart tags for the hexo, the idea came from my favorite markdown editor - MarkEditor.
Installation
1 | npm install hexo-inject --save |
Barchart
Horizontal Headings
1 | {% barchart 'Barchart with Horizontal Headings' %} |
Vertical Headings
1 | {% barchart 'Barchart with Vertical Headings' %} |
Two Dimensional
1 | {% barchart 'Barchart with Two Dimensional' %} |
Note: Early Q3(Q3)
and Late Q3(Q3)
will automatically combined.
Linechart
Horizontal Headings
1 | {% linechart 'Linechart with Horizontal Headings' %} |
Vertical Headings
1 | {% linechart 'Linechart with Vertical Headings' %} |
Two Dimensional
1 | {% linechart 'Linechart with Two Dimensional' %} |
Note: Early Q3(Q3)
and Late Q3(Q3)
will automatically combined.
Piechart
Horizontal Headings
1 | {% piechart 'Piechart with Horizontal Headings' %} |
Vertical Headings
1 | {% piechart 'Piechart with Vertical Headings' %} |
Options
- width
- height
- legend
Example
1 | {% piechart 'title' width:300px height:400px legend:false %} |