Skip to content

A simple plugin for inserting ECharts 3 by using tags in Hexo.

Notifications You must be signed in to change notification settings

knowiki/hexo-tag-echarts4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-echarts

npm Travis David David

本插件基于Quentin Chenhexo-tag-echarts3修改。

Insert Echarts in Hexo by using tags.

Install

$ npm install hexo-tag-echarts4 --save

Usage

{% 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 官方实例

About

A simple plugin for inserting ECharts 3 by using tags in Hexo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.1%
  • HTML 43.9%