This is an automated email from the ASF dual-hosted git repository.
wangdd pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new 3ce2292 update line-api example
3ce2292 is described below
commit 3ce22922b5f62c9e8f65cedd2ea337d92ad4ddb1
Author: Wdingding <[email protected]>
AuthorDate: Thu Nov 5 12:36:59 2020 +0800
update line-api example
---
public/data/line-aqi.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/public/data/line-aqi.js b/public/data/line-aqi.js
index a27ff95..70ec9f5 100644
--- a/public/data/line-aqi.js
+++ b/public/data/line-aqi.js
@@ -8,11 +8,17 @@ difficulty: 4
$.get(ROOT_PATH + '/data/asset/data/aqi-beijing.json', function (data) {
myChart.setOption(option = {
title: {
- text: 'Beijing AQI'
+ text: 'Beijing AQI',
+ left: '1%'
},
tooltip: {
trigger: 'axis'
},
+ grid: {
+ left: '5%',
+ right: '15%',
+ bottom: '10%'
+ },
xAxis: {
data: data.map(function (item) {
return item[0];
@@ -20,7 +26,7 @@ $.get(ROOT_PATH + '/data/asset/data/aqi-beijing.json',
function (data) {
},
yAxis: {},
toolbox: {
- left: 'center',
+ right: 10,
feature: {
dataZoom: {
yAxisIndex: 'none'
@@ -35,7 +41,7 @@ $.get(ROOT_PATH + '/data/asset/data/aqi-beijing.json',
function (data) {
type: 'inside'
}],
visualMap: {
- top: 10,
+ top: 50,
right: 10,
pieces: [{
gt: 0,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]