Echart

echart

快速上手

  • 在github仓库dist目录下拷贝echart.js 和 echart.min.js到index.html目录下。

Vue-ECharts

参考中文文档

1
2
sudo apt-get install npm
npm install echarts vue-echarts

实践

简单柱状图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
option = {
title: {
text: 'Percentage of page walk time overhead caused by data TLB misses',
subtext: 'GUPS RandomAccess benchmark'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
xAxis: {
name: 'input-data \nsize',
type: 'category',
data: ['2^29', '2^30', '2^31', '2^32'],
},
yAxis: {
// name: 'Percentage',
type: 'value',
title: 'align'
},
series: [
{
name: "Percentage",
data: [13.20, 19.50, 45.22,66.81],
type: 'bar',
label: {
show: true,
position: 'top'
},
}
]
};

需要进一步的研究学习

暂无

遇到的问题

暂无

开题缘由、总结、反思、吐槽~~

参考文献

Author

Shaojie Tan

Posted on

2023-08-02

Updated on

2025-01-30

Licensed under