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/10/27 06:31:15 UTC
[incubator-echarts-examples] branch next updated: translate more
titles to zh
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 03c67e1 translate more titles to zh
03c67e1 is described below
commit 03c67e18b5df4e0fec78af4c62b025950d64df07
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Oct 27 14:30:59 2020 +0800
translate more titles to zh
---
public/data/bar-label-rotation.js | 1 +
public/data/dataset-default.js | 2 +-
public/data/multiple-x-axis.js | 2 +-
public/data/sankey-energy.js | 4 ++--
public/data/sankey-itemstyle.js | 2 +-
public/data/sankey-levels.js | 2 +-
public/data/sankey-nodeAlign-left.js | 2 +-
public/data/sankey-nodeAlign-right.js | 2 +-
public/data/thumb-manual/lines-bmap-effect.jpg | Bin 135693 -> 0 bytes
src/explore/ExampleCard.vue | 9 ++++++++-
10 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/public/data/bar-label-rotation.js b/public/data/bar-label-rotation.js
index 920d016..141a643 100644
--- a/public/data/bar-label-rotation.js
+++ b/public/data/bar-label-rotation.js
@@ -1,5 +1,6 @@
/*
title: Bar Label Rotation
+titleCN: 柱状图标签旋转
category: bar
difficulty: 3
*/
diff --git a/public/data/dataset-default.js b/public/data/dataset-default.js
index 6ec63a9..054c50e 100644
--- a/public/data/dataset-default.js
+++ b/public/data/dataset-default.js
@@ -1,7 +1,7 @@
/*
title: Default arrangement
category: 'dataset, pie'
-titleCN: 默认 encode 安排
+titleCN: 默认 encode 设置
difficulty: 3
*/
diff --git a/public/data/multiple-x-axis.js b/public/data/multiple-x-axis.js
index da8f383..2b15dec 100644
--- a/public/data/multiple-x-axis.js
+++ b/public/data/multiple-x-axis.js
@@ -1,7 +1,7 @@
/*
title: Multiple X Axes
category: line
-titleCN: Multiple X Axes
+titleCN: 多 X 轴
difficulty: 4
*/
diff --git a/public/data/sankey-energy.js b/public/data/sankey-energy.js
index ebb8933..4bf13eb 100644
--- a/public/data/sankey-energy.js
+++ b/public/data/sankey-energy.js
@@ -1,7 +1,7 @@
/*
-title: Sankey Diagram
+title: Gradient Edge
category: sankey
-titleCN: Sankey Diagram
+titleCN: 桑基图渐变色边
difficulty: 3
*/
diff --git a/public/data/sankey-itemstyle.js b/public/data/sankey-itemstyle.js
index fc1a9cb..1e22ec3 100644
--- a/public/data/sankey-itemstyle.js
+++ b/public/data/sankey-itemstyle.js
@@ -1,7 +1,7 @@
/*
title: Specify ItemStyle for Each Node in Sankey
category: sankey
-titleCN: Specify ItemStyle for Each Node in Sankey
+titleCN: 桑基图节点自定义样式
difficulty: 2
*/
diff --git a/public/data/sankey-levels.js b/public/data/sankey-levels.js
index d9c8d92..9932e23 100644
--- a/public/data/sankey-levels.js
+++ b/public/data/sankey-levels.js
@@ -1,7 +1,7 @@
/*
title: Sankey with Levels Setting
category: sankey
-titleCN: Sankey with Levels Setting
+titleCN: 桑基图层级自定义样式
difficulty: 2
*/
diff --git a/public/data/sankey-nodeAlign-left.js b/public/data/sankey-nodeAlign-left.js
index 4576d35..d2e7d1a 100644
--- a/public/data/sankey-nodeAlign-left.js
+++ b/public/data/sankey-nodeAlign-left.js
@@ -1,7 +1,7 @@
/*
title: Node Align Left in Sankey
category: sankey
-titleCN: Node Align Left in Sankey
+titleCN: 桑基图左对齐布局
difficulty: 3
*/
diff --git a/public/data/sankey-nodeAlign-right.js b/public/data/sankey-nodeAlign-right.js
index 9e299a1..25964a6 100644
--- a/public/data/sankey-nodeAlign-right.js
+++ b/public/data/sankey-nodeAlign-right.js
@@ -1,7 +1,7 @@
/*
title: Node Align Right in Sankey
category: sankey
-titleCN: Node Align Right in Sankey
+titleCN: 桑基图右对齐布局
difficulty: 3
*/
diff --git a/public/data/thumb-manual/lines-bmap-effect.jpg b/public/data/thumb-manual/lines-bmap-effect.jpg
deleted file mode 100644
index f247c77..0000000
Binary files a/public/data/thumb-manual/lines-bmap-effect.jpg and /dev/null differ
diff --git a/src/explore/ExampleCard.vue b/src/explore/ExampleCard.vue
index 0e6fc3e..c6f5bdd 100644
--- a/src/explore/ExampleCard.vue
+++ b/src/explore/ExampleCard.vue
@@ -3,7 +3,7 @@
<a target="_blank" class="example-link" :href="exampleLink">
<img class="chart-area" src="../asset/placeholder.jpg" :data-src="screenshotURL" />
<h4 class="example-title">{{title}}</h4>
- <h5 class="example-subtitle" v-if="title !== subtitle">{{subtitle}}</h5>
+ <h5 class="example-subtitle" v-if="showSubtitle">{{subtitle}}</h5>
</a>
</div>
</template>
@@ -23,6 +23,10 @@ export default {
|| this.example.title || '';
},
+ showSubtitle() {
+ return store.locale === 'zh';
+ },
+
subtitle() {
return this.example.title || '';
},
@@ -104,6 +108,9 @@ export default {
color: #aaa;
font-weight: normal;
// font-weight: 200;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
margin: 3px 0 0 0;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org