4.8.1 • Published 5 years ago
hexo-tag-echartswithgl v4.8.1
hexo-tag-echarts
本插件基于Quentin Chen的hexo-tag-echarts3修改。
Insert Echarts in Hexo by using tags.
Install
$ npm install hexo-tag-echartswithgl --saveUsage
{% echarts 400 '85%' %}
\\TODO echarts contents goes here
{% endecharts %}{% echarts 400 '85%' %}
var data = [];
for (var u = 0; u <= 10; u += 0.2) {
	var f = 12*u;
	f = Math.round(f*100)/100;
	data.push([u, f]);
}
option = {
	tooltip: {},
	xAxis: {
		name: 'U/V',
		interval: 1
	},
	yAxis: {
		name: 'f/Hz',
		interval: 10
	},
	series: [{
		data: data,
		type: 'line',
		lineStyle: {
			width: 4
		}
	}]
};
{% endecharts %}For more details, visit Demo here.
Echarts 官方实例