hexo-tag-chart
![npm](https://img.shields.io/npm/v/hexo-tag-chart)
Insert Chartjs in Hexo site by using tags.
Install
$ npm install hexo-tag-chart --save
Usage
{% chart [height] [width] %}
\\Chartjs options goes here
{% endchart %}
Example
{% chart 400 '85%' %}
{
type: 'line',
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [{
label: 'My First dataset',
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [0, 10, 5, 2, 20, 30, 45]
}]
},
options: {
responsive: true,
title: {
display: true,
text: 'Chart.js Line Chart'
}
}
};
{% endchart %}