You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/12/07 05:26:25 UTC
[incubator-echarts-examples] branch next updated: Update
line-race.js
This is an automated email from the ASF dual-hosted git repository.
shenyi 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 355f6c9 Update line-race.js
355f6c9 is described below
commit 355f6c9fba40a871822b822f20aaf63e4b14ed95
Author: pissang <bm...@gmail.com>
AuthorDate: Mon Dec 7 13:26:12 2020 +0800
Update line-race.js
---
public/data/line-race.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/public/data/line-race.js b/public/data/line-race.js
index d9948e6..196ad4f 100644
--- a/public/data/line-race.js
+++ b/public/data/line-race.js
@@ -34,6 +34,7 @@ function run(_rawData) {
type: 'line',
datasetId: datasetId,
showSymbol: false,
+ name: country,
endLabel: {
show: true,
formatter: function (params) {
@@ -43,6 +44,9 @@ function run(_rawData) {
labelLayout: {
moveOverlap: 'shiftY'
},
+ emphasis: {
+ focus: 'series'
+ },
encode: {
x: 'Year',
y: 'Income',
@@ -63,6 +67,7 @@ function run(_rawData) {
text: 'Income of Germany and France since 1950'
},
tooltip: {
+ order: 'valueDesc',
trigger: 'axis'
},
xAxis: {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org