You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2020/09/28 08:38:30 UTC

[incubator-echarts-examples] branch next updated: feat: update with English desc

This is an automated email from the ASF dual-hosted git repository.

ovilia 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 71f719b  feat: update with English desc
71f719b is described below

commit 71f719b8cecf980e8e6383fccd08740c8776c6c7
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Sep 28 16:36:37 2020 +0800

    feat: update with English desc
---
 public/data/bar-y-category-stack.js | 34 +++++++++++++++++-----------------
 public/data/scatter-weight.js       | 29 +++++++++++++++--------------
 2 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/public/data/bar-y-category-stack.js b/public/data/bar-y-category-stack.js
index e2c21cd..ef8a8a1 100644
--- a/public/data/bar-y-category-stack.js
+++ b/public/data/bar-y-category-stack.js
@@ -1,17 +1,17 @@
 /*
-title: 堆叠条形图
+title: Stacked Horizontal Bar
+titleCN: 堆叠条形图
 category: bar
 */
-
 option = {
     tooltip: {
         trigger: 'axis',
-        axisPointer: {            // 坐标轴指示器,坐标轴触发有效
-            type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
+        axisPointer: {            // Use axis to trigger tooltip
+            type: 'shadow'        // 'shadow' as default; can also be 'line' or 'shadow'
         }
     },
     legend: {
-        data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
+        data: ['Direct', 'Mail Ad', 'Affiliate Ad', 'Video Ad', 'Search Engine']
     },
     grid: {
         left: '3%',
@@ -24,13 +24,13 @@ option = {
     },
     yAxis: {
         type: 'category',
-        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
+        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     series: [
         {
-            name: '直接访问',
+            name: 'Direct',
             type: 'bar',
-            stack: '总量',
+            stack: 'total',
             label: {
                 show: true
             },
@@ -40,9 +40,9 @@ option = {
             data: [320, 302, 301, 334, 390, 330, 320]
         },
         {
-            name: '邮件营销',
+            name: 'Mail Ad',
             type: 'bar',
-            stack: '总量',
+            stack: 'total',
             label: {
                 show: true
             },
@@ -52,9 +52,9 @@ option = {
             data: [120, 132, 101, 134, 90, 230, 210]
         },
         {
-            name: '联盟广告',
+            name: 'Affiliate Ad',
             type: 'bar',
-            stack: '总量',
+            stack: 'total',
             label: {
                 show: true
             },
@@ -64,9 +64,9 @@ option = {
             data: [220, 182, 191, 234, 290, 330, 310]
         },
         {
-            name: '视频广告',
+            name: 'Video Ad',
             type: 'bar',
-            stack: '总量',
+            stack: 'total',
             label: {
                 show: true
             },
@@ -76,9 +76,9 @@ option = {
             data: [150, 212, 201, 154, 190, 330, 410]
         },
         {
-            name: '搜索引擎',
+            name: 'Search Engine',
             type: 'bar',
-            stack: '总量',
+            stack: 'total',
             label: {
                 show: true
             },
@@ -88,4 +88,4 @@ option = {
             data: [820, 832, 901, 934, 1290, 1330, 1320]
         }
     ]
-};
\ No newline at end of file
+};
diff --git a/public/data/scatter-weight.js b/public/data/scatter-weight.js
index 14d7b6a..e315fd3 100644
--- a/public/data/scatter-weight.js
+++ b/public/data/scatter-weight.js
@@ -6,13 +6,13 @@ titleCN: 男性女性身高体重分布
 
 option = {
     title: {
-        text: '男性女性身高体重分布',
-        subtext: '抽样调查来自: Heinz  2003'
+        text: 'Male and female height and weight distribution',
+        subtext: 'Data from: Heinz 2003'
     },
     grid: {
         left: '3%',
         right: '7%',
-        bottom: '3%',
+        bottom: '7%',
         containLabel: true
     },
     tooltip: {
@@ -50,8 +50,9 @@ option = {
     brush: {
     },
     legend: {
-        data: ['女性', '男性'],
-        left: 'center'
+        data: ['Female', 'Male'],
+        left: 'center',
+        bottom: 10
     },
     xAxis: [
         {
@@ -79,7 +80,7 @@ option = {
     ],
     series: [
         {
-            name: '女性',
+            name: 'Female',
             type: 'scatter',
             emphasis: {
                 focus: 'series'
@@ -145,7 +146,7 @@ option = {
                     borderType: 'dashed'
                 },
                 data: [[{
-                    name: '女性分布区间',
+                    name: 'Female Data Range',
                     xAxis: 'min',
                     yAxis: 'min'
                 }, {
@@ -155,8 +156,8 @@ option = {
             },
             markPoint: {
                 data: [
-                    {type: 'max', name: '最大值'},
-                    {type: 'min', name: '最小值'}
+                    {type: 'max', name: 'Max'},
+                    {type: 'min', name: 'Min'}
                 ]
             },
             markLine: {
@@ -170,7 +171,7 @@ option = {
             }
         },
         {
-            name: '男性',
+            name: 'Male',
             type: 'scatter',
             emphasis: {
                 focus: 'series'
@@ -234,7 +235,7 @@ option = {
                     borderType: 'dashed'
                 },
                 data: [[{
-                    name: '男性分布区间',
+                    name: 'Male Data Range',
                     xAxis: 'min',
                     yAxis: 'min'
                 }, {
@@ -244,8 +245,8 @@ option = {
             },
             markPoint: {
                 data: [
-                    {type: 'max', name: '最大值'},
-                    {type: 'min', name: '最小值'}
+                    {type: 'max', name: 'Max'},
+                    {type: 'min', name: 'Min'}
                 ]
             },
             markLine: {
@@ -253,7 +254,7 @@ option = {
                     type: 'solid'
                 },
                 data: [
-                    {type: 'average', name: '平均值'},
+                    {type: 'average', name: 'Average'},
                     { xAxis: 170 }
                 ]
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org