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 2021/09/10 02:50:00 UTC

[echarts-examples] 08/15: add ts flag

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

shenyi pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git

commit 8eb05c1952a88afb23cd1b528e6d53cee53c2698
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Sep 7 16:29:56 2021 +0800

    add ts flag
---
 src/common/i18n.js          |   6 +-
 src/common/store.js         |  17 ++-
 src/data/chart-list-data.js | 327 +++++++++++++++++++++++++++++++++++++++-----
 src/editor/Editor.vue       |  30 +++-
 src/editor/Preview.vue      |  16 +--
 tool/build-example.js       |   9 +-
 6 files changed, 356 insertions(+), 49 deletions(-)

diff --git a/src/common/i18n.js b/src/common/i18n.js
index 8bb0e56..097aa08 100644
--- a/src/common/i18n.js
+++ b/src/common/i18n.js
@@ -25,7 +25,8 @@ export default {
 
       tooltip: {
         jsMode: 'JavaScript',
-        tsMode: 'TypeScript. Provides Better Intelligent'
+        tsMode: 'TypeScript. Provides Better Intelligent',
+        noTs: 'No Available TypeScript Code'
       },
 
       codeChangedConfirm:
@@ -102,7 +103,8 @@ export default {
 
       tooltip: {
         jsMode: 'JavaScript 代码编辑',
-        tsMode: 'TypeScript 代码编辑,提供更好的代码补全和类型检查。'
+        tsMode: 'TypeScript 代码编辑,提供更好的代码补全和类型检查',
+        noTs: '该示例暂无 TypeScript 版本'
       },
 
       codeChangedConfirm: '已经修改过的代码将会丢失,是否确认继续?',
diff --git a/src/common/store.js b/src/common/store.js
index af35246..6dbb3ee 100644
--- a/src/common/store.js
+++ b/src/common/store.js
@@ -1,5 +1,7 @@
 // import * as matter from 'gray-matter';
 import { URL_PARAMS } from '../common/config';
+import CHART_LIST from '../data/chart-list-data';
+import CHART_LIST_GL from '../data/chart-list-data-gl';
 
 export const store = {
   cdnRoot: '',
@@ -10,7 +12,8 @@ export const store = {
   enableDecal: 'decal' in URL_PARAMS,
   renderer: URL_PARAMS.renderer || 'canvas',
 
-  typeCheck: (URL_PARAMS.lang || '').toLowerCase() === 'ts',
+  typeCheck:
+    getExampleConfig().ts && (URL_PARAMS.lang || '').toLowerCase() === 'ts',
   useDirtyRect: 'useDirtyRect' in URL_PARAMS,
 
   runCode: '',
@@ -26,6 +29,18 @@ export const store = {
   }
 };
 
+function findExample(item) {
+  return URL_PARAMS.c === item.id;
+}
+export function getExampleConfig() {
+  const example = CHART_LIST.concat(CHART_LIST_GL).find(findExample);
+  return example;
+}
+
+export function isGLExample() {
+  return CHART_LIST_GL.find(findExample);
+}
+
 export function loadExampleCode() {
   return new Promise((resolve) => {
     const glFolder = URL_PARAMS.gl ? 'gl/' : '';
diff --git a/src/data/chart-list-data.js b/src/data/chart-list-data.js
index 2418a66..3581bc4 100644
--- a/src/data/chart-list-data.js
+++ b/src/data/chart-list-data.js
@@ -7,6 +7,7 @@ export default [
       "bar"
     ],
     "id": "bar-background",
+    "ts": true,
     "tags": [],
     "title": "Bar with Background",
     "titleCN": "带背景色的柱状图",
@@ -17,6 +18,7 @@ export default [
       "custom"
     ],
     "id": "bar-histogram",
+    "ts": true,
     "tags": [],
     "title": "Histogram with Custom Series",
     "titleCN": "直方图(自定义系列)",
@@ -27,6 +29,7 @@ export default [
       "bar"
     ],
     "id": "bar-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Bar",
     "titleCN": "基础柱状图",
@@ -37,6 +40,7 @@ export default [
       "bar"
     ],
     "id": "bar-tick-align",
+    "ts": true,
     "tags": [],
     "title": "Axis Align with Tick",
     "titleCN": "坐标轴刻度与标签对齐",
@@ -47,6 +51,7 @@ export default [
       "calendar"
     ],
     "id": "calendar-simple",
+    "ts": true,
     "tags": [],
     "title": "Simple Calendar",
     "titleCN": "基础日历图",
@@ -57,6 +62,7 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Candlestick",
     "titleCN": "基础 K 线图",
@@ -69,6 +75,7 @@ export default [
       "transform"
     ],
     "id": "data-transform-sort-bar",
+    "ts": true,
     "tags": [],
     "title": "Sort Data in Bar Chart",
     "titleCN": "柱状图排序",
@@ -79,6 +86,7 @@ export default [
       "heatmap"
     ],
     "id": "heatmap-cartesian",
+    "ts": true,
     "tags": [],
     "title": "Heatmap on Cartesian",
     "titleCN": "笛卡尔坐标系上的热力图",
@@ -89,6 +97,7 @@ export default [
       "line"
     ],
     "id": "line-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Line Chart",
     "titleCN": "基础折线图",
@@ -99,6 +108,7 @@ export default [
       "line"
     ],
     "id": "line-smooth",
+    "ts": true,
     "tags": [],
     "title": "Smoothed Line Chart",
     "titleCN": "基础平滑折线图",
@@ -109,9 +119,10 @@ export default [
       "pie"
     ],
     "id": "pie-simple",
+    "ts": true,
     "tags": [],
-    "title": "Referer of a website",
-    "titleCN": "某站点用户访问来源",
+    "title": "Referer of a Website",
+    "titleCN": "某站点用户Access From",
     "difficulty": 0
   },
   {
@@ -119,6 +130,7 @@ export default [
       "radar"
     ],
     "id": "radar",
+    "ts": true,
     "tags": [],
     "title": "Basic Radar Chart",
     "titleCN": "基础雷达图",
@@ -129,6 +141,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Sankey",
     "titleCN": "基础桑基图",
@@ -139,6 +152,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Scatter Chart",
     "titleCN": "基础散点图",
@@ -149,6 +163,7 @@ export default [
       "line"
     ],
     "id": "area-basic",
+    "ts": true,
     "tags": [],
     "title": "Basic area chart",
     "titleCN": "基础面积图",
@@ -159,6 +174,7 @@ export default [
       "bar"
     ],
     "id": "bar-data-color",
+    "ts": true,
     "tags": [],
     "title": "Set Style of Single Bar.",
     "titleCN": "自定义单个柱子颜色",
@@ -169,6 +185,7 @@ export default [
       "bar"
     ],
     "id": "bar-waterfall",
+    "ts": true,
     "tags": [],
     "title": "Waterfall Chart",
     "titleCN": "瀑布图(柱状图模拟)",
@@ -180,6 +197,7 @@ export default [
       "heatmap"
     ],
     "id": "calendar-heatmap",
+    "ts": true,
     "tags": [],
     "title": "Calendar Heatmap",
     "titleCN": "日历热力图",
@@ -191,6 +209,7 @@ export default [
       "heatmap"
     ],
     "id": "calendar-vertical",
+    "ts": true,
     "tags": [],
     "title": "Calendar Heatmap Vertical",
     "titleCN": "纵向日历图",
@@ -201,6 +220,7 @@ export default [
       "candlestick"
     ],
     "id": "custom-ohlc",
+    "ts": false,
     "tags": [],
     "title": "OHLC Chart",
     "titleCN": "OHLC 图(使用自定义系列)",
@@ -211,6 +231,7 @@ export default [
       "custom"
     ],
     "id": "custom-profit",
+    "ts": false,
     "tags": [],
     "title": "Profit",
     "titleCN": "利润分布直方图",
@@ -222,6 +243,7 @@ export default [
       "bar"
     ],
     "id": "dataset-encode0",
+    "ts": true,
     "tags": [],
     "title": "Simple Encode",
     "titleCN": "指定数据到坐标轴的映射",
@@ -232,6 +254,7 @@ export default [
       "gauge"
     ],
     "id": "gauge",
+    "ts": true,
     "tags": [],
     "title": "Gauge Basic chart",
     "titleCN": "基础仪表盘",
@@ -242,6 +265,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-simple",
+    "ts": true,
     "tags": [],
     "title": "Simple Gauge",
     "titleCN": "带标签数字动画的基础仪表盘",
@@ -252,6 +276,7 @@ export default [
       "graph"
     ],
     "id": "graph-force2",
+    "ts": true,
     "tags": [],
     "title": "Force Layout",
     "titleCN": "力引导布局",
@@ -262,6 +287,7 @@ export default [
       "line"
     ],
     "id": "line-stack",
+    "ts": true,
     "tags": [],
     "title": "Stacked Line Chart",
     "titleCN": "折线图堆叠",
@@ -272,6 +298,7 @@ export default [
       "parallel"
     ],
     "id": "parallel-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Parallel",
     "titleCN": "基础平行坐标",
@@ -282,6 +309,7 @@ export default [
       "pie"
     ],
     "id": "pie-borderRadius",
+    "ts": true,
     "tags": [],
     "title": "Doughnut Chart with Rounded Corner",
     "titleCN": "圆角环形图",
@@ -292,6 +320,7 @@ export default [
       "pie"
     ],
     "id": "pie-doughnut",
+    "ts": true,
     "tags": [],
     "title": "Doughnut Chart",
     "titleCN": "环形图",
@@ -302,6 +331,7 @@ export default [
       "radar"
     ],
     "id": "radar-aqi",
+    "ts": true,
     "tags": [],
     "title": "AQI - Radar Chart",
     "titleCN": "AQI - 雷达图",
@@ -312,6 +342,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-vertical",
+    "ts": true,
     "tags": [],
     "title": "Sankey Orient Vertical",
     "titleCN": "垂直方向的桑基图",
@@ -322,6 +353,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-anscombe-quartet",
+    "ts": true,
     "tags": [],
     "title": "Anscomb's quartet",
     "titleCN": "Anscomb's quartet",
@@ -332,6 +364,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-clustering",
+    "ts": true,
     "tags": [],
     "title": "Clustering Process",
     "titleCN": "数据聚合",
@@ -342,6 +375,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-clustering-process",
+    "ts": false,
     "tags": [],
     "title": "Clustering Process",
     "titleCN": "聚合过程可视化",
@@ -352,6 +386,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-exponential-regression",
+    "ts": true,
     "tags": [],
     "title": "Exponential Regression",
     "titleCN": "指数回归(使用统计插件)",
@@ -362,6 +397,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Sunburst",
     "titleCN": "基础旭日图",
@@ -372,8 +408,9 @@ export default [
       "line"
     ],
     "id": "area-stack",
+    "ts": true,
     "tags": [],
-    "title": "Stacked area chart",
+    "title": "Stacked Area Chart",
     "titleCN": "堆叠面积图",
     "difficulty": 2
   },
@@ -382,8 +419,9 @@ export default [
       "line"
     ],
     "id": "area-stack-gradient",
+    "ts": true,
     "tags": [],
-    "title": "Gradient Stacked area chart",
+    "title": "Gradient Stacked Area Chart",
     "titleCN": "渐变堆叠面积图",
     "difficulty": 2
   },
@@ -392,6 +430,7 @@ export default [
       "bar"
     ],
     "id": "bar-negative2",
+    "ts": true,
     "tags": [],
     "title": "Bar Chart with Negative Value",
     "titleCN": "交错正负轴标签",
@@ -401,9 +440,32 @@ export default [
     "category": [
       "bar"
     ],
+    "id": "bar-polar-label-radial",
+    "ts": true,
+    "tags": [],
+    "title": "Radial Polar Bar Label Position",
+    "titleCN": "极坐标柱状图标签",
+    "difficulty": 2
+  },
+  {
+    "category": [
+      "bar"
+    ],
+    "id": "bar-polar-label-tangential",
+    "ts": true,
+    "tags": [],
+    "title": "Tangential Polar Bar Label Position",
+    "titleCN": "极坐标柱状图标签",
+    "difficulty": 2
+  },
+  {
+    "category": [
+      "bar"
+    ],
     "id": "bar-y-category",
+    "ts": true,
     "tags": [],
-    "title": "World Total Population",
+    "title": "World Population",
     "titleCN": "世界人口总量 - 条形图",
     "difficulty": 2
   },
@@ -412,6 +474,7 @@ export default [
       "calendar"
     ],
     "id": "calendar-horizontal",
+    "ts": true,
     "tags": [],
     "title": "Calendar Heatmap Horizontal",
     "titleCN": "横向日历图",
@@ -422,6 +485,7 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-sh",
+    "ts": true,
     "tags": [],
     "title": "ShangHai Index",
     "titleCN": "上证指数",
@@ -433,6 +497,7 @@ export default [
       "dataZoom"
     ],
     "id": "custom-error-scatter",
+    "ts": false,
     "tags": [],
     "title": "Error Scatter on Catesian",
     "titleCN": "使用自定系列给散点图添加误差范围",
@@ -443,6 +508,7 @@ export default [
       "scatter"
     ],
     "id": "effectScatter-map",
+    "ts": true,
     "tags": [],
     "title": "Air Quality",
     "titleCN": "全国主要城市空气质量",
@@ -453,6 +519,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-speed",
+    "ts": true,
     "tags": [],
     "title": "Speed Gauge",
     "titleCN": "速度仪表盘",
@@ -463,6 +530,7 @@ export default [
       "graph"
     ],
     "id": "graph-grid",
+    "ts": true,
     "tags": [],
     "title": "Graph on Cartesian",
     "titleCN": "笛卡尔坐标系上的 Graph",
@@ -473,6 +541,7 @@ export default [
       "graph"
     ],
     "id": "graph-simple",
+    "ts": true,
     "tags": [],
     "title": "Simple Graph",
     "titleCN": "Graph 简单示例",
@@ -483,6 +552,7 @@ export default [
       "heatmap"
     ],
     "id": "heatmap-large",
+    "ts": false,
     "tags": [],
     "title": "Heatmap - 2w data",
     "titleCN": "热力图 - 2w 数据",
@@ -493,6 +563,7 @@ export default [
       "heatmap"
     ],
     "id": "heatmap-large-piecewise",
+    "ts": false,
     "tags": [],
     "title": "Heatmap - Discrete Mapping of Color",
     "titleCN": "热力图 - 颜色的离散映射",
@@ -503,8 +574,9 @@ export default [
       "line"
     ],
     "id": "line-marker",
+    "ts": true,
     "tags": [],
-    "title": "Temperature Change in the coming week",
+    "title": "Temperature Change in the Coming Week",
     "titleCN": "未来一周气温变化",
     "difficulty": 2
   },
@@ -513,6 +585,7 @@ export default [
       "parallel"
     ],
     "id": "parallel-aqi",
+    "ts": true,
     "tags": [],
     "title": "Parallel Aqi",
     "titleCN": "AQI 分布(平行坐标)",
@@ -523,6 +596,7 @@ export default [
       "pie"
     ],
     "id": "pie-custom",
+    "ts": true,
     "tags": [],
     "title": "Customized Pie",
     "titleCN": "饼图自定义样式",
@@ -533,6 +607,7 @@ export default [
       "pie"
     ],
     "id": "pie-pattern",
+    "ts": true,
     "tags": [],
     "title": "Texture on Pie Chart",
     "titleCN": "饼图纹理",
@@ -543,8 +618,9 @@ export default [
       "pie"
     ],
     "id": "pie-roseType",
+    "ts": true,
     "tags": [],
-    "title": "Nightingale's Rose Diagram",
+    "title": "Nightingale Chart",
     "titleCN": "南丁格尔玫瑰图",
     "difficulty": 2
   },
@@ -553,8 +629,9 @@ export default [
       "pie"
     ],
     "id": "pie-roseType-simple",
+    "ts": true,
     "tags": [],
-    "title": "Nightingale's Rose Diagram",
+    "title": "Nightingale Chart",
     "titleCN": "基础南丁格尔玫瑰图",
     "difficulty": 2
   },
@@ -563,6 +640,7 @@ export default [
       "radar"
     ],
     "id": "radar-custom",
+    "ts": true,
     "tags": [],
     "title": "Customized Radar Chart",
     "titleCN": "自定义雷达图",
@@ -573,6 +651,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-itemstyle",
+    "ts": true,
     "tags": [],
     "title": "Specify ItemStyle for Each Node in Sankey",
     "titleCN": "桑基图节点自定义样式",
@@ -583,6 +662,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-levels",
+    "ts": true,
     "tags": [],
     "title": "Sankey with Levels Setting",
     "titleCN": "桑基图层级自定义样式",
@@ -593,6 +673,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-effect",
+    "ts": true,
     "tags": [],
     "title": "Effect Scatter Chart",
     "titleCN": "涟漪特效散点图",
@@ -603,6 +684,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-linear-regression",
+    "ts": true,
     "tags": [],
     "title": "Linear Regression",
     "titleCN": "线性回归(使用统计插件)",
@@ -613,6 +695,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-polynomial-regression",
+    "ts": true,
     "tags": [],
     "title": "Polynomial Regression",
     "titleCN": "多项式回归(使用统计插件)",
@@ -623,6 +706,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-borderRadius",
+    "ts": true,
     "tags": [],
     "title": "Sunburst with Rounded Corner",
     "titleCN": "圆角旭日图",
@@ -633,6 +717,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-label-rotate",
+    "ts": true,
     "tags": [],
     "title": "Sunburst Label Rotate",
     "titleCN": "旭日图标签旋转",
@@ -644,6 +729,7 @@ export default [
       "visualMap"
     ],
     "id": "area-pieces",
+    "ts": true,
     "tags": [],
     "title": "Area Pieces",
     "titleCN": "折线图区域高亮",
@@ -654,6 +740,7 @@ export default [
       "bar"
     ],
     "id": "bar-gradient",
+    "ts": true,
     "tags": [],
     "title": "Clickable Column Chart with Gradient",
     "titleCN": "特性示例:渐变色 阴影 点击缩放",
@@ -664,6 +751,7 @@ export default [
       "bar"
     ],
     "id": "bar-label-rotation",
+    "ts": true,
     "tags": [],
     "title": "Bar Label Rotation",
     "titleCN": "柱状图标签旋转",
@@ -674,6 +762,7 @@ export default [
       "bar"
     ],
     "id": "bar-stack",
+    "ts": true,
     "tags": [],
     "title": "Stacked Column Chart",
     "titleCN": "堆叠柱状图",
@@ -684,6 +773,7 @@ export default [
       "bar"
     ],
     "id": "bar-waterfall2",
+    "ts": true,
     "tags": [],
     "title": "Waterfall Chart",
     "titleCN": "阶梯瀑布图(柱状图模拟)",
@@ -694,6 +784,7 @@ export default [
       "bar"
     ],
     "id": "bar-y-category-stack",
+    "ts": true,
     "tags": [],
     "title": "Stacked Horizontal Bar",
     "titleCN": "堆叠条形图",
@@ -704,6 +795,7 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-large",
+    "ts": true,
     "tags": [],
     "title": "Large Scale Candlestick",
     "titleCN": "大数据量K线图",
@@ -714,6 +806,7 @@ export default [
       "custom"
     ],
     "id": "custom-bar-trend",
+    "ts": true,
     "tags": [],
     "title": "Custom Bar Trend",
     "titleCN": "使用自定义系列添加柱状图趋势",
@@ -724,6 +817,7 @@ export default [
       "custom"
     ],
     "id": "custom-cartesian-polygon",
+    "ts": false,
     "tags": [],
     "title": "Custom Cartesian Polygon",
     "titleCN": "自定义多边形图",
@@ -734,6 +828,7 @@ export default [
       "custom"
     ],
     "id": "custom-error-bar",
+    "ts": false,
     "tags": [],
     "title": "Error Bar on Catesian",
     "titleCN": "使用自定系列给柱状图添加误差范围",
@@ -744,6 +839,7 @@ export default [
       "custom"
     ],
     "id": "custom-profile",
+    "ts": false,
     "tags": [],
     "title": "Profile",
     "titleCN": "性能分析图",
@@ -754,6 +850,7 @@ export default [
       "custom"
     ],
     "id": "cycle-plot",
+    "ts": false,
     "tags": [],
     "title": "Cycle Plot",
     "titleCN": "Cycle Plot",
@@ -764,6 +861,7 @@ export default [
       "line"
     ],
     "id": "data-transform-filter",
+    "ts": true,
     "tags": [],
     "title": "Data Transform Fitler",
     "titleCN": "数据过滤",
@@ -776,6 +874,7 @@ export default [
       "transform"
     ],
     "id": "data-transform-multiple-pie",
+    "ts": true,
     "tags": [],
     "title": "Partition Data to Pies",
     "titleCN": "分割数据到数个饼图",
@@ -787,6 +886,7 @@ export default [
       "pie"
     ],
     "id": "dataset-default",
+    "ts": true,
     "tags": [],
     "title": "Default arrangement",
     "titleCN": "默认 encode 设置",
@@ -797,6 +897,7 @@ export default [
       "dataset"
     ],
     "id": "dataset-encode1",
+    "ts": true,
     "tags": [],
     "title": "Encode and Matrix",
     "titleCN": "指定数据到坐标轴的映射",
@@ -807,6 +908,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-progress",
+    "ts": true,
     "tags": [],
     "title": "Grogress Gauge",
     "titleCN": "进度仪表盘",
@@ -817,6 +919,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-stage",
+    "ts": true,
     "tags": [],
     "title": "Stage Speed Gauge",
     "titleCN": "阶段速度仪表盘",
@@ -827,6 +930,7 @@ export default [
       "graph"
     ],
     "id": "graph-force",
+    "ts": true,
     "tags": [],
     "title": "Force Layout",
     "titleCN": "力引导布局",
@@ -837,6 +941,7 @@ export default [
       "graph"
     ],
     "id": "graph-label-overlap",
+    "ts": true,
     "tags": [],
     "title": "Hide Overlapped Label",
     "titleCN": "关系图自动隐藏重叠标签",
@@ -847,6 +952,7 @@ export default [
       "heatmap"
     ],
     "id": "heatmap-bmap",
+    "ts": false,
     "tags": [
       "bmap"
     ],
@@ -859,6 +965,7 @@ export default [
       "heatmap"
     ],
     "id": "heatmap-map",
+    "ts": false,
     "tags": [],
     "title": "Air Qulity",
     "titleCN": "全国主要城市空气质量",
@@ -869,6 +976,7 @@ export default [
       "line"
     ],
     "id": "line-gradient",
+    "ts": true,
     "tags": [],
     "title": "Line Gradient",
     "titleCN": "折线图的渐变",
@@ -879,6 +987,7 @@ export default [
       "line"
     ],
     "id": "line-sections",
+    "ts": true,
     "tags": [],
     "title": "Distribution of Electricity",
     "titleCN": "一天用电量分布",
@@ -889,6 +998,7 @@ export default [
       "pie"
     ],
     "id": "pie-alignTo",
+    "ts": true,
     "tags": [],
     "title": "Pie Label Align",
     "titleCN": "饼图标签对齐",
@@ -899,6 +1009,7 @@ export default [
       "pie"
     ],
     "id": "pie-labelLine-adjust",
+    "ts": true,
     "tags": [],
     "title": "Label Line Adjust",
     "titleCN": "饼图引导线调整",
@@ -909,6 +1020,7 @@ export default [
       "radar"
     ],
     "id": "radar2",
+    "ts": true,
     "tags": [],
     "title": "Proportion of Browsers",
     "titleCN": "浏览器占比变化",
@@ -919,6 +1031,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-energy",
+    "ts": true,
     "tags": [],
     "title": "Gradient Edge",
     "titleCN": "桑基图渐变色边",
@@ -929,6 +1042,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-nodeAlign-left",
+    "ts": true,
     "tags": [],
     "title": "Node Align Left in Sankey",
     "titleCN": "桑基图左对齐布局",
@@ -939,6 +1053,7 @@ export default [
       "sankey"
     ],
     "id": "sankey-nodeAlign-right",
+    "ts": true,
     "tags": [],
     "title": "Node Align Right in Sankey",
     "titleCN": "桑基图右对齐布局",
@@ -949,6 +1064,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-punchCard",
+    "ts": true,
     "tags": [],
     "title": "Punch Card of Github",
     "titleCN": "GitHub 打卡气泡图",
@@ -959,6 +1075,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-single-axis",
+    "ts": true,
     "tags": [],
     "title": "Scatter on Single Axis",
     "titleCN": "单轴散点图",
@@ -969,6 +1086,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-weight",
+    "ts": true,
     "tags": [],
     "title": "Distribution of Height and Weight",
     "titleCN": "男性女性身高体重分布",
@@ -979,6 +1097,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-monochrome",
+    "ts": true,
     "tags": [],
     "title": "Monochrome Sunburst",
     "titleCN": "Monochrome Sunburst",
@@ -990,6 +1109,7 @@ export default [
       "dataZoom"
     ],
     "id": "area-simple",
+    "ts": true,
     "tags": [],
     "title": "Large scale area chart",
     "titleCN": "大数据量面积图",
@@ -1000,6 +1120,7 @@ export default [
       "bar"
     ],
     "id": "bar-brush",
+    "ts": true,
     "tags": [],
     "title": "Brush Select on Column Chart",
     "titleCN": "柱状图框选",
@@ -1010,6 +1131,7 @@ export default [
       "bar"
     ],
     "id": "bar-negative",
+    "ts": true,
     "tags": [],
     "title": "Bar Chart with Negative Value",
     "titleCN": "正负条形图",
@@ -1020,6 +1142,7 @@ export default [
       "bar"
     ],
     "id": "bar1",
+    "ts": true,
     "tags": [],
     "title": "Rainfall and Evaporation",
     "titleCN": "某地区蒸发量和降水量",
@@ -1031,6 +1154,7 @@ export default [
       "graph"
     ],
     "id": "calendar-graph",
+    "ts": true,
     "tags": [],
     "title": "Calendar Graph",
     "titleCN": "日历关系图",
@@ -1041,6 +1165,7 @@ export default [
       "calendar"
     ],
     "id": "calendar-lunar",
+    "ts": true,
     "tags": [],
     "title": "Calendar Lunar",
     "titleCN": "农历日历图",
@@ -1051,6 +1176,7 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-touch",
+    "ts": true,
     "tags": [],
     "title": "Axis Pointer Link and Touch",
     "titleCN": "触屏上的坐标轴指示器",
@@ -1061,6 +1187,7 @@ export default [
       "line"
     ],
     "id": "confidence-band",
+    "ts": true,
     "tags": [],
     "title": "Confidence Band",
     "titleCN": "Confidence Band",
@@ -1073,6 +1200,7 @@ export default [
       "drag"
     ],
     "id": "custom-gantt-flight",
+    "ts": false,
     "tags": [],
     "title": "Gantt Chart of Airport Flights",
     "titleCN": "机场航班甘特图",
@@ -1083,6 +1211,7 @@ export default [
       "custom"
     ],
     "id": "custom-polar-heatmap",
+    "ts": false,
     "tags": [],
     "title": "Polar Heatmap",
     "titleCN": "极坐标热力图(自定义系列)",
@@ -1093,6 +1222,7 @@ export default [
       "boxplot"
     ],
     "id": "data-transform-aggregate",
+    "ts": false,
     "tags": [],
     "title": "Data Transform Simple Aggregate",
     "titleCN": "简单的数据聚合",
@@ -1103,6 +1233,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-grade",
+    "ts": true,
     "tags": [],
     "title": "Grade Gauge",
     "titleCN": "等级仪表盘",
@@ -1113,6 +1244,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-multi-title",
+    "ts": true,
     "tags": [],
     "title": "Multi Title Gauge",
     "titleCN": "多标题仪表盘",
@@ -1123,6 +1255,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-temperature",
+    "ts": true,
     "tags": [],
     "title": "Temperature Gauge chart",
     "titleCN": "气温仪表盘",
@@ -1133,6 +1266,7 @@ export default [
       "graph"
     ],
     "id": "graph",
+    "ts": true,
     "tags": [],
     "title": "Les Miserables",
     "titleCN": "悲惨世界人物关系图",
@@ -1143,9 +1277,10 @@ export default [
       "line"
     ],
     "id": "grid-multiple",
+    "ts": true,
     "tags": [],
-    "title": "Rainfall and Water Flow",
-    "titleCN": "雨量流量关系图",
+    "title": "Rainfall vs Evaporation",
+    "titleCN": "雨量Evaporation关系图",
     "difficulty": 4
   },
   {
@@ -1153,6 +1288,7 @@ export default [
       "line"
     ],
     "id": "line-aqi",
+    "ts": true,
     "tags": [],
     "title": "Beijing AQI",
     "titleCN": "北京 AQI 可视化",
@@ -1163,6 +1299,7 @@ export default [
       "bar"
     ],
     "id": "mix-line-bar",
+    "ts": true,
     "tags": [],
     "title": "Mixed Line and Bar",
     "titleCN": "折柱混合",
@@ -1173,6 +1310,7 @@ export default [
       "bar"
     ],
     "id": "mix-zoom-on-value",
+    "ts": true,
     "tags": [],
     "title": "Mix Zoom On Value",
     "titleCN": "多数值轴轴缩放",
@@ -1183,6 +1321,7 @@ export default [
       "line"
     ],
     "id": "multiple-x-axis",
+    "ts": true,
     "tags": [],
     "title": "Multiple X Axes",
     "titleCN": "多 X 轴",
@@ -1193,6 +1332,7 @@ export default [
       "bar"
     ],
     "id": "multiple-y-axis",
+    "ts": true,
     "tags": [],
     "title": "Multiple Y Axes",
     "titleCN": "多 Y 轴示例",
@@ -1203,6 +1343,7 @@ export default [
       "parallel"
     ],
     "id": "parallel-nutrients",
+    "ts": true,
     "tags": [],
     "title": "Parallel Nutrients",
     "titleCN": "营养结构(平行坐标)",
@@ -1214,6 +1355,7 @@ export default [
       "animation"
     ],
     "id": "pictorialBar-bar-transition",
+    "ts": true,
     "tags": [],
     "title": "Transition between pictorialBar and bar",
     "titleCN": "象形主图变形为柱状图",
@@ -1224,6 +1366,7 @@ export default [
       "pie"
     ],
     "id": "pie-legend",
+    "ts": true,
     "tags": [],
     "title": "Pie with Scrollable Legend",
     "titleCN": "可滚动的图例",
@@ -1235,6 +1378,7 @@ export default [
       "rich"
     ],
     "id": "pie-rich-text",
+    "ts": true,
     "tags": [],
     "title": "Pie Special Label",
     "titleCN": "富文本标签",
@@ -1246,6 +1390,7 @@ export default [
       "animation"
     ],
     "id": "scatter-aggregate-bar",
+    "ts": true,
     "tags": [],
     "title": "Aggregate Scatter to Bar",
     "titleCN": "散点图聚合为柱状图动画",
@@ -1256,6 +1401,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-label-align-right",
+    "ts": true,
     "tags": [],
     "title": "Align Label on the Top",
     "titleCN": "散点图标签顶部对齐",
@@ -1266,6 +1412,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-label-align-top",
+    "ts": true,
     "tags": [],
     "title": "Align Label on the Top",
     "titleCN": "散点图标签顶部对齐",
@@ -1276,6 +1423,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-symbol-morph",
+    "ts": true,
     "tags": [],
     "title": "Symbol Shape Morph",
     "titleCN": "散点图变形动画",
@@ -1286,6 +1434,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-visualMap",
+    "ts": true,
     "tags": [],
     "title": "Sunburst VisualMap",
     "titleCN": "旭日图使用视觉编码",
@@ -1296,6 +1445,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-sunburst-transition",
+    "ts": true,
     "tags": [],
     "title": "Transition between Treemap and Sunburst",
     "titleCN": "矩形树图和旭日图的动画过渡",
@@ -1306,6 +1456,7 @@ export default [
       "line"
     ],
     "id": "area-rainfall",
+    "ts": true,
     "tags": [],
     "title": "Rainfall",
     "titleCN": "雨量流量关系图",
@@ -1316,6 +1467,7 @@ export default [
       "line"
     ],
     "id": "area-time-axis",
+    "ts": true,
     "tags": [],
     "title": "Area Chart with Time Axis",
     "titleCN": "时间轴折线图",
@@ -1326,6 +1478,7 @@ export default [
       "bar"
     ],
     "id": "bar-animation-delay",
+    "ts": true,
     "tags": [],
     "title": "Animation Delay",
     "titleCN": "柱状图动画延迟",
@@ -1336,6 +1489,7 @@ export default [
       "bar"
     ],
     "id": "bar-drilldown",
+    "ts": true,
     "tags": [],
     "title": "Bar Chart Drilldown Animation.",
     "titleCN": "柱状图下钻动画",
@@ -1346,6 +1500,7 @@ export default [
       "bar"
     ],
     "id": "bar-large",
+    "ts": true,
     "tags": [],
     "title": "Large Scale Bar Chart",
     "titleCN": "大数据量柱图",
@@ -1356,6 +1511,7 @@ export default [
       "bar"
     ],
     "id": "bar-race",
+    "ts": true,
     "tags": [],
     "title": "Bar Race",
     "titleCN": "动态排序柱状图",
@@ -1368,6 +1524,7 @@ export default [
       "pie"
     ],
     "id": "dataset-link",
+    "ts": true,
     "tags": [],
     "title": "Share Dataset",
     "titleCN": "联动和共享数据集",
@@ -1379,6 +1536,7 @@ export default [
       "bar"
     ],
     "id": "dataset-series-layout-by",
+    "ts": true,
     "tags": [],
     "title": "Series Layout By Column or Row",
     "titleCN": "系列按行和按列排布",
@@ -1390,6 +1548,7 @@ export default [
       "bar"
     ],
     "id": "dataset-simple0",
+    "ts": true,
     "tags": [],
     "title": "Simple Example of Dataset",
     "titleCN": "最简单的数据集(dataset)",
@@ -1401,6 +1560,7 @@ export default [
       "bar"
     ],
     "id": "dataset-simple1",
+    "ts": true,
     "tags": [],
     "title": "Dataset in Object Array",
     "titleCN": "对象数组的输入格式",
@@ -1411,6 +1571,7 @@ export default [
       "line"
     ],
     "id": "dynamic-data2",
+    "ts": true,
     "tags": [],
     "title": "Dynamic Data + Time Axis",
     "titleCN": "动态数据 + 时间坐标轴",
@@ -1421,6 +1582,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-ring",
+    "ts": true,
     "tags": [],
     "title": "Ring Gauge",
     "titleCN": "得分环",
@@ -1431,6 +1593,7 @@ export default [
       "graph"
     ],
     "id": "graph-circular-layout",
+    "ts": true,
     "tags": [],
     "title": "Les Miserables",
     "titleCN": "悲惨世界人物关系图(环形布局)",
@@ -1441,6 +1604,7 @@ export default [
       "line"
     ],
     "id": "line-function",
+    "ts": true,
     "tags": [],
     "title": "Function Plot",
     "titleCN": "函数绘图",
@@ -1451,6 +1615,7 @@ export default [
       "line"
     ],
     "id": "line-race",
+    "ts": true,
     "tags": [],
     "title": "Line Race",
     "titleCN": "动态排序折线图",
@@ -1462,6 +1627,7 @@ export default [
       "rich"
     ],
     "id": "pie-nest",
+    "ts": true,
     "tags": [],
     "title": "Nested Pies",
     "titleCN": "嵌套环形图",
@@ -1472,6 +1638,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-large",
+    "ts": true,
     "tags": [],
     "title": "Large Scatter",
     "titleCN": "大规模散点图",
@@ -1482,6 +1649,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-nebula",
+    "ts": true,
     "tags": [],
     "title": "Scatter Nebula",
     "titleCN": "大规模星云散点图",
@@ -1492,6 +1660,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-stream-visual",
+    "ts": true,
     "tags": [],
     "title": "Visual interaction with stream",
     "titleCN": "流式渲染和视觉映射操作",
@@ -1502,6 +1671,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-drink",
+    "ts": true,
     "tags": [],
     "title": "Drink Flavors",
     "titleCN": "Drink Flavors",
@@ -1513,6 +1683,7 @@ export default [
       "dataZoom"
     ],
     "id": "wind-barb",
+    "ts": true,
     "tags": [],
     "title": "Wind Barb",
     "titleCN": "风向图",
@@ -1523,6 +1694,7 @@ export default [
       "bar"
     ],
     "id": "bar-race-country",
+    "ts": true,
     "tags": [],
     "title": "Bar Race",
     "titleCN": "动态排序柱状图 - 人均收入",
@@ -1534,6 +1706,7 @@ export default [
       "rich"
     ],
     "id": "bar-rich-text",
+    "ts": true,
     "tags": [],
     "title": "Wheater Statistics",
     "titleCN": "天气统计(富文本)",
@@ -1544,6 +1717,7 @@ export default [
       "scatter"
     ],
     "id": "bubble-gradient",
+    "ts": true,
     "tags": [],
     "title": "Bubble Chart",
     "titleCN": "气泡图",
@@ -1555,6 +1729,7 @@ export default [
       "pie"
     ],
     "id": "calendar-pie",
+    "ts": true,
     "tags": [],
     "title": "Calendar Pie",
     "titleCN": "日历饼图",
@@ -1566,6 +1741,7 @@ export default [
       "map"
     ],
     "id": "custom-hexbin",
+    "ts": false,
     "tags": [],
     "title": "Hexagonal Binning",
     "titleCN": "六边形分箱图(自定义系列)",
@@ -1576,6 +1752,7 @@ export default [
       "bar"
     ],
     "id": "dynamic-data",
+    "ts": true,
     "tags": [],
     "title": "Dynamic Data",
     "titleCN": "动态数据",
@@ -1586,6 +1763,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-barometer",
+    "ts": true,
     "tags": [],
     "title": "Gauge Barometer chart",
     "titleCN": "气压表",
@@ -1596,6 +1774,7 @@ export default [
       "graph"
     ],
     "id": "graph-force-dynamic",
+    "ts": true,
     "tags": [],
     "title": "Graph Dynamic",
     "titleCN": "动态增加图节点",
@@ -1606,6 +1785,7 @@ export default [
       "line"
     ],
     "id": "line-markline",
+    "ts": true,
     "tags": [],
     "title": "Line with Marklines",
     "titleCN": "折线图的标记线",
@@ -1616,6 +1796,7 @@ export default [
       "line"
     ],
     "id": "line-style",
+    "ts": true,
     "tags": [],
     "title": "Line Style and Item Style",
     "titleCN": "自定义折线图样式",
@@ -1626,6 +1807,7 @@ export default [
       "bar"
     ],
     "id": "mix-timeline-finance",
+    "ts": false,
     "tags": [],
     "title": "Finance Indices 2002",
     "titleCN": "2002全国宏观经济指标",
@@ -1636,6 +1818,7 @@ export default [
       "sunburst"
     ],
     "id": "sunburst-book",
+    "ts": false,
     "tags": [],
     "title": "Book Records",
     "titleCN": "书籍分布",
@@ -1646,6 +1829,7 @@ export default [
       "bar"
     ],
     "id": "watermark",
+    "ts": true,
     "tags": [],
     "title": "Watermark - ECharts Download",
     "titleCN": "水印 - ECharts 下载统计",
@@ -1656,6 +1840,7 @@ export default [
       "bar"
     ],
     "id": "bar-polar-real-estate",
+    "ts": true,
     "tags": [],
     "title": "Bar Chart on Polar",
     "difficulty": 7
@@ -1665,6 +1850,7 @@ export default [
       "bar"
     ],
     "id": "bar-polar-stack",
+    "ts": true,
     "tags": [],
     "title": "Stacked Bar Chart on Polar",
     "titleCN": "极坐标系下的堆叠柱状图",
@@ -1675,6 +1861,7 @@ export default [
       "bar"
     ],
     "id": "bar-polar-stack-radial",
+    "ts": true,
     "tags": [],
     "title": "Stacked Bar Chart on Polar(Radial)",
     "titleCN": "极坐标系下的堆叠柱状图",
@@ -1686,6 +1873,7 @@ export default [
       "calendar"
     ],
     "id": "custom-calendar-icon",
+    "ts": true,
     "tags": [],
     "title": "Custom Calendar Icon",
     "titleCN": "日历图自定义图标",
@@ -1696,6 +1884,7 @@ export default [
       "custom"
     ],
     "id": "custom-wind",
+    "ts": false,
     "tags": [],
     "title": "Use custom series to draw wind vectors",
     "titleCN": "使用自定义系列绘制风场",
@@ -1706,6 +1895,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-clock",
+    "ts": true,
     "tags": [],
     "title": "Clock",
     "titleCN": "时钟仪表盘",
@@ -1716,6 +1906,7 @@ export default [
       "graph"
     ],
     "id": "graph-life-expectancy",
+    "ts": true,
     "tags": [],
     "title": "Graph Life Expectancy",
     "titleCN": "Graph Life Expectancy",
@@ -1726,6 +1917,7 @@ export default [
       "line"
     ],
     "id": "line-in-cartesian-coordinate-system",
+    "ts": true,
     "tags": [],
     "title": "Line Chart in Cartesian Coordinate System",
     "titleCN": "双数值轴折线图",
@@ -1736,6 +1928,7 @@ export default [
       "line"
     ],
     "id": "line-log",
+    "ts": true,
     "tags": [],
     "title": "Log Axis",
     "titleCN": "对数轴示例",
@@ -1746,6 +1939,7 @@ export default [
       "line"
     ],
     "id": "line-step",
+    "ts": true,
     "tags": [],
     "title": "Step Line",
     "titleCN": "阶梯折线图",
@@ -1756,6 +1950,7 @@ export default [
       "bar"
     ],
     "id": "polar-roundCap",
+    "ts": true,
     "tags": [],
     "title": "Rounded Bar on Polar",
     "titleCN": "圆角环形图",
@@ -1766,6 +1961,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-aqi-color",
+    "ts": true,
     "tags": [],
     "title": "Scatter Aqi Color",
     "titleCN": "AQI 气泡图",
@@ -1776,6 +1972,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-nutrients",
+    "ts": true,
     "tags": [],
     "title": "Scatter Nutrients",
     "titleCN": "营养分布散点图",
@@ -1786,6 +1983,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-nutrients-matrix",
+    "ts": true,
     "tags": [],
     "title": "Scatter Nutrients Matrix",
     "titleCN": "营养分布散点矩阵",
@@ -1796,6 +1994,7 @@ export default [
       "gauge"
     ],
     "id": "gauge-car",
+    "ts": true,
     "tags": [],
     "title": "Gauge Car",
     "titleCN": "Gauge Car",
@@ -1806,6 +2005,7 @@ export default [
       "graph"
     ],
     "id": "graph-webkit-dep",
+    "ts": true,
     "tags": [],
     "title": "Graph Webkit Dep",
     "titleCN": "WebKit 模块关系依赖图",
@@ -1816,6 +2016,7 @@ export default [
       "line"
     ],
     "id": "line-easing",
+    "ts": true,
     "tags": [],
     "title": "Line Easing Visualizing",
     "titleCN": "缓动函数可视化",
@@ -1826,6 +2027,7 @@ export default [
       "line"
     ],
     "id": "line-y-category",
+    "ts": true,
     "tags": [],
     "title": "Line Y Category",
     "titleCN": "垂直折线图(Y轴为类目轴)",
@@ -1836,6 +2038,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-polar-punchCard",
+    "ts": true,
     "tags": [],
     "title": "Punch Card of Github",
     "titleCN": "GitHub 打卡气泡图(极坐标)",
@@ -1846,6 +2049,7 @@ export default [
       "custom"
     ],
     "id": "custom-gauge",
+    "ts": false,
     "tags": [],
     "title": "Custom Gauge",
     "titleCN": "自定义仪表",
@@ -1856,6 +2060,7 @@ export default [
       "graph"
     ],
     "id": "graph-npm",
+    "ts": true,
     "tags": [],
     "title": "NPM Dependencies",
     "titleCN": "NPM 依赖关系图",
@@ -1866,6 +2071,7 @@ export default [
       "line"
     ],
     "id": "line-graphic",
+    "ts": true,
     "tags": [],
     "title": "Custom Graphic Component",
     "titleCN": "自定义图形组件",
@@ -1876,6 +2082,7 @@ export default [
       "line"
     ],
     "id": "line-pen",
+    "ts": true,
     "tags": [],
     "title": "Click to Add Points",
     "titleCN": "点击添加折线图拐点",
@@ -1886,6 +2093,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-life-expectancy-timeline",
+    "ts": false,
     "tags": [],
     "title": "Life Expectancy and GDP",
     "titleCN": "各国人均寿命与GDP关系演变",
@@ -1896,28 +2104,18 @@ export default [
       "scatter"
     ],
     "id": "scatter-painter-choice",
+    "ts": true,
     "tags": [],
     "title": "Master Painter Color Choices Throughout History",
     "titleCN": "Master Painter Color Choices Throughout History",
     "difficulty": 9
   },
   {
-    "category": [],
-    "id": "bar-polar-label-radial",
-    "tags": [],
-    "difficulty": 10
-  },
-  {
-    "category": [],
-    "id": "bar-polar-label-tangential",
-    "tags": [],
-    "difficulty": 10
-  },
-  {
     "category": [
       "boxplot"
     ],
     "id": "boxplot-light-velocity",
+    "ts": true,
     "tags": [],
     "title": "Boxplot Light Velocity",
     "titleCN": "基础盒须图",
@@ -1928,6 +2126,7 @@ export default [
       "boxplot"
     ],
     "id": "boxplot-light-velocity2",
+    "ts": true,
     "tags": [],
     "title": "Boxplot Light Velocity2",
     "titleCN": "垂直方向盒须图",
@@ -1938,6 +2137,7 @@ export default [
       "boxplot"
     ],
     "id": "boxplot-multi",
+    "ts": true,
     "tags": [],
     "title": "Multiple Categories",
     "titleCN": "多系列盒须图",
@@ -1946,6 +2146,7 @@ export default [
   {
     "category": [],
     "id": "calendar-effectscatter",
+    "ts": true,
     "tags": [],
     "difficulty": 10
   },
@@ -1954,9 +2155,10 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-brush",
+    "ts": true,
     "tags": [],
     "title": "Candlestick Brush",
-    "titleCN": "日历图刷选",
+    "titleCN": "K 线图刷选",
     "difficulty": 10
   },
   {
@@ -1964,23 +2166,19 @@ export default [
       "candlestick"
     ],
     "id": "candlestick-sh-2015",
+    "ts": true,
     "tags": [],
     "title": "ShangHai Index, 2015",
     "titleCN": "2015 年上证指数",
     "difficulty": 10
   },
   {
-    "category": [],
-    "id": "covid-america",
-    "tags": [],
-    "difficulty": 10
-  },
-  {
     "category": [
       "scatter",
       "map"
     ],
     "id": "effectScatter-bmap",
+    "ts": true,
     "tags": [
       "bmap"
     ],
@@ -1993,6 +2191,7 @@ export default [
       "funnel"
     ],
     "id": "funnel",
+    "ts": true,
     "tags": [],
     "title": "Funnel Chart",
     "titleCN": "漏斗图",
@@ -2003,8 +2202,9 @@ export default [
       "funnel"
     ],
     "id": "funnel-align",
+    "ts": true,
     "tags": [],
-    "title": "Funnel (align)",
+    "title": "Funnel Compare",
     "titleCN": "漏斗图(对比)",
     "difficulty": 10
   },
@@ -2013,6 +2213,7 @@ export default [
       "funnel"
     ],
     "id": "funnel-customize",
+    "ts": true,
     "tags": [],
     "title": "Customized Funnel",
     "titleCN": "漏斗图",
@@ -2023,9 +2224,10 @@ export default [
       "funnel"
     ],
     "id": "funnel-mutiple",
+    "ts": true,
     "tags": [],
     "title": "Multiple Funnels",
-    "titleCN": "漏斗图",
+    "titleCN": "Funnel",
     "difficulty": 10
   },
   {
@@ -2033,6 +2235,7 @@ export default [
       "map"
     ],
     "id": "geo-beef-cuts",
+    "ts": true,
     "tags": [],
     "title": "GEO Beef Cuts",
     "titleCN": "庖丁解牛",
@@ -2043,6 +2246,7 @@ export default [
       "map"
     ],
     "id": "geo-lines",
+    "ts": false,
     "tags": [],
     "title": "Migration",
     "titleCN": "模拟迁徙",
@@ -2053,6 +2257,7 @@ export default [
       "map"
     ],
     "id": "geo-map-scatter",
+    "ts": false,
     "tags": [],
     "title": "map and scatter share a geo",
     "titleCN": "map and scatter share a geo",
@@ -2063,6 +2268,7 @@ export default [
       "map"
     ],
     "id": "geo-organ",
+    "ts": false,
     "tags": [],
     "title": "Organ Data with SVG",
     "titleCN": "内脏数据(SVG)",
@@ -2073,6 +2279,7 @@ export default [
       "map"
     ],
     "id": "geo-seatmap-flight",
+    "ts": true,
     "tags": [],
     "title": "Flight Seatmap with SVG",
     "titleCN": "航班选座(SVG)",
@@ -2083,6 +2290,7 @@ export default [
       "map"
     ],
     "id": "geo-svg-lines",
+    "ts": true,
     "tags": [],
     "title": "GEO SVG Lines",
     "titleCN": "GEO 路径图(SVG)",
@@ -2093,6 +2301,7 @@ export default [
       "map"
     ],
     "id": "geo-svg-map",
+    "ts": true,
     "tags": [],
     "title": "GEO SVG Map",
     "titleCN": "地图(SVG)",
@@ -2103,6 +2312,7 @@ export default [
       "map"
     ],
     "id": "geo-svg-scatter-simple",
+    "ts": true,
     "tags": [],
     "title": "GEO SVG Scatter",
     "titleCN": "散点图(SVG)",
@@ -2113,6 +2323,7 @@ export default [
       "map"
     ],
     "id": "geo-svg-traffic",
+    "ts": true,
     "tags": [],
     "title": "GEO SVG Traffic",
     "titleCN": "交通(SVG)",
@@ -2124,6 +2335,7 @@ export default [
       "drag"
     ],
     "id": "line-draggable",
+    "ts": true,
     "tags": [],
     "title": "Try Dragging these Points",
     "titleCN": "可拖拽点",
@@ -2134,6 +2346,7 @@ export default [
       "line"
     ],
     "id": "line-polar",
+    "ts": true,
     "tags": [],
     "title": "Two Value-Axes in Polar",
     "titleCN": "极坐标双数值轴",
@@ -2144,6 +2357,7 @@ export default [
       "line"
     ],
     "id": "line-polar2",
+    "ts": true,
     "tags": [],
     "title": "Two Value-Axes in Polar",
     "titleCN": "极坐标双数值轴",
@@ -2155,6 +2369,7 @@ export default [
       "dataZoom"
     ],
     "id": "line-tooltip-touch",
+    "ts": true,
     "tags": [],
     "title": "Tooltip and DataZoom on Mobile",
     "titleCN": "移动端上的 dataZoom 和 tooltip",
@@ -2166,6 +2381,7 @@ export default [
       "lines"
     ],
     "id": "lines-airline",
+    "ts": true,
     "tags": [],
     "title": "65k+ Airline",
     "titleCN": "65k+ 飞机航线",
@@ -2177,6 +2393,7 @@ export default [
       "lines"
     ],
     "id": "lines-bmap",
+    "ts": true,
     "tags": [
       "bmap"
     ],
@@ -2190,6 +2407,7 @@ export default [
       "lines"
     ],
     "id": "lines-bmap-bus",
+    "ts": true,
     "tags": [
       "bmap"
     ],
@@ -2203,6 +2421,7 @@ export default [
       "lines"
     ],
     "id": "lines-bmap-effect",
+    "ts": true,
     "tags": [
       "bmap"
     ],
@@ -2216,6 +2435,7 @@ export default [
       "lines"
     ],
     "id": "lines-ny",
+    "ts": true,
     "tags": [],
     "title": "Use lines to draw 1 million ny streets.",
     "titleCN": "使用线图绘制近 100 万的纽约街道数据",
@@ -2227,6 +2447,7 @@ export default [
       "animation"
     ],
     "id": "map-bar-morph",
+    "ts": true,
     "tags": [],
     "title": "Morphing between Map and Bar",
     "titleCN": "地图柱状图变形动画",
@@ -2237,6 +2458,7 @@ export default [
       "map"
     ],
     "id": "map-bin",
+    "ts": false,
     "tags": [
       "bmap"
     ],
@@ -2249,6 +2471,7 @@ export default [
       "map"
     ],
     "id": "map-china",
+    "ts": false,
     "tags": [],
     "title": "Map China",
     "titleCN": "Map China",
@@ -2259,6 +2482,7 @@ export default [
       "map"
     ],
     "id": "map-china-dataRange",
+    "ts": false,
     "tags": [],
     "title": "Sales of iphone",
     "titleCN": "iphone销量",
@@ -2269,6 +2493,7 @@ export default [
       "map"
     ],
     "id": "map-HK",
+    "ts": true,
     "tags": [],
     "title": "Population Density of HongKong (2011)",
     "titleCN": "香港18区人口密度 (2011)",
@@ -2279,6 +2504,7 @@ export default [
       "map"
     ],
     "id": "map-labels",
+    "ts": false,
     "tags": [],
     "title": "Rich Text Labels on Map",
     "titleCN": "地图上的富文本标签",
@@ -2289,6 +2515,7 @@ export default [
       "map"
     ],
     "id": "map-locate",
+    "ts": false,
     "tags": [],
     "title": "Map Locate",
     "titleCN": "Map Locate",
@@ -2299,6 +2526,7 @@ export default [
       "map"
     ],
     "id": "map-polygon",
+    "ts": false,
     "tags": [
       "bmap"
     ],
@@ -2311,6 +2539,7 @@ export default [
       "map"
     ],
     "id": "map-province",
+    "ts": false,
     "tags": [],
     "title": "Switch among 34 Provinces",
     "titleCN": "34 省切换查看",
@@ -2321,6 +2550,7 @@ export default [
       "map"
     ],
     "id": "map-usa",
+    "ts": true,
     "tags": [],
     "title": "USA Population Estimates (2012)",
     "titleCN": "2012 年美国人口统计",
@@ -2331,6 +2561,7 @@ export default [
       "map"
     ],
     "id": "map-world",
+    "ts": false,
     "tags": [],
     "title": "Map World",
     "titleCN": "Map World",
@@ -2341,6 +2572,7 @@ export default [
       "map"
     ],
     "id": "map-world-dataRange",
+    "ts": false,
     "tags": [],
     "title": "World Population (2010)",
     "titleCN": "World Population (2010)",
@@ -2351,6 +2583,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-body-fill",
+    "ts": true,
     "tags": [],
     "title": "Water Content",
     "titleCN": "人体含水量",
@@ -2361,6 +2594,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-dotted",
+    "ts": true,
     "tags": [],
     "title": "Dotted bar",
     "titleCN": "虚线柱状图效果",
@@ -2371,6 +2605,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-forest",
+    "ts": true,
     "tags": [],
     "title": "Expansion of forest",
     "titleCN": "森林的增长",
@@ -2381,6 +2616,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-hill",
+    "ts": true,
     "tags": [],
     "title": "Wish List and Mountain Height",
     "titleCN": "圣诞愿望清单和山峰高度",
@@ -2391,6 +2627,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-spirit",
+    "ts": true,
     "tags": [],
     "title": "Spirits",
     "titleCN": "精灵",
@@ -2401,6 +2638,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-vehicle",
+    "ts": true,
     "tags": [],
     "title": "Vehicles",
     "titleCN": "交通工具",
@@ -2411,6 +2649,7 @@ export default [
       "pictorialBar"
     ],
     "id": "pictorialBar-velocity",
+    "ts": true,
     "tags": [],
     "title": "Velocity of Christmas Reindeers",
     "titleCN": "驯鹿的速度",
@@ -2422,6 +2661,7 @@ export default [
       "animtion"
     ],
     "id": "pie-parliament-transition",
+    "ts": true,
     "tags": [],
     "title": "Transition of Parliament and Pie Chart",
     "titleCN": "自定义议会图与饼图过渡动画",
@@ -2432,6 +2672,7 @@ export default [
       "radar"
     ],
     "id": "radar-multiple",
+    "ts": true,
     "tags": [],
     "title": "Multiple Radar",
     "titleCN": "多雷达图",
@@ -2442,6 +2683,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-map",
+    "ts": false,
     "tags": [],
     "title": "Air Quality",
     "titleCN": "全国主要城市空气质量",
@@ -2452,6 +2694,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-map-brush",
+    "ts": true,
     "tags": [],
     "title": "Scatter Map Brush",
     "titleCN": "Scatter Map Brush",
@@ -2463,6 +2706,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-matrix",
+    "ts": true,
     "tags": [],
     "title": "Scatter Matrix",
     "titleCN": "散点矩阵和平行坐标",
@@ -2473,6 +2717,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-weibo",
+    "ts": true,
     "tags": [],
     "title": "Sign in of weibo",
     "titleCN": "微博签到数据点亮中国",
@@ -2483,6 +2728,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-world-population",
+    "ts": false,
     "tags": [],
     "title": "World Population (2011)",
     "titleCN": "World Population (2011)",
@@ -2493,6 +2739,7 @@ export default [
       "themeRiver"
     ],
     "id": "themeRiver-basic",
+    "ts": true,
     "tags": [],
     "title": "ThemeRiver",
     "titleCN": "主题河流图",
@@ -2503,6 +2750,7 @@ export default [
       "themeRiver"
     ],
     "id": "themeRiver-lastfm",
+    "ts": true,
     "tags": [],
     "title": "ThemeRiver Lastfm",
     "titleCN": "ThemeRiver Lastfm",
@@ -2513,6 +2761,7 @@ export default [
       "tree"
     ],
     "id": "tree-basic",
+    "ts": true,
     "tags": [],
     "title": "From Left to Right Tree",
     "titleCN": "从左到右树状图",
@@ -2523,6 +2772,7 @@ export default [
       "tree"
     ],
     "id": "tree-legend",
+    "ts": true,
     "tags": [],
     "title": "Multiple Trees",
     "titleCN": "多棵树",
@@ -2533,6 +2783,7 @@ export default [
       "tree"
     ],
     "id": "tree-orient-bottom-top",
+    "ts": true,
     "tags": [],
     "title": "From Bottom to Top Tree",
     "titleCN": "从下到上树状图",
@@ -2543,6 +2794,7 @@ export default [
       "tree"
     ],
     "id": "tree-orient-right-left",
+    "ts": true,
     "tags": [],
     "title": "From Right to Left Tree",
     "titleCN": "从右到左树状图",
@@ -2553,6 +2805,7 @@ export default [
       "tree"
     ],
     "id": "tree-polyline",
+    "ts": true,
     "tags": [],
     "title": "Tree with Polyline Edge",
     "titleCN": "折线树图",
@@ -2563,6 +2816,7 @@ export default [
       "tree"
     ],
     "id": "tree-radial",
+    "ts": true,
     "tags": [],
     "title": "Radial Tree",
     "titleCN": "径向树状图",
@@ -2573,6 +2827,7 @@ export default [
       "tree"
     ],
     "id": "tree-vertical",
+    "ts": true,
     "tags": [],
     "title": "From Top to Bottom Tree",
     "titleCN": "从上到下树状图",
@@ -2583,6 +2838,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-disk",
+    "ts": true,
     "tags": [],
     "title": "Disk Usage",
     "titleCN": "磁盘占用",
@@ -2593,6 +2849,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-drill-down",
+    "ts": true,
     "tags": [],
     "title": "ECharts Option Query",
     "titleCN": "ECharts 配置项查询分布",
@@ -2603,6 +2860,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-obama",
+    "ts": true,
     "tags": [],
     "title": "How $3.7 Trillion is Spent",
     "titleCN": "How $3.7 Trillion is Spent",
@@ -2613,6 +2871,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-show-parent",
+    "ts": true,
     "tags": [],
     "title": "Show Parent Labels",
     "titleCN": "显示父层级标签",
@@ -2623,6 +2882,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-simple",
+    "ts": true,
     "tags": [],
     "title": "Basic Treemap",
     "titleCN": "基础矩形树图",
@@ -2633,6 +2893,7 @@ export default [
       "treemap"
     ],
     "id": "treemap-visual",
+    "ts": true,
     "tags": [],
     "title": "Gradient Mapping",
     "titleCN": "映射为渐变色",
@@ -2644,6 +2905,7 @@ export default [
       "scatter"
     ],
     "id": "calendar-charts",
+    "ts": true,
     "tags": [],
     "title": "Calendar Charts",
     "titleCN": "日历图",
@@ -2654,6 +2916,7 @@ export default [
       "custom"
     ],
     "id": "circle-packing-with-d3",
+    "ts": true,
     "tags": [],
     "title": "Circle Packing with d3",
     "titleCN": "Circle Packing with d3",
@@ -2664,6 +2927,7 @@ export default [
       "custom"
     ],
     "id": "custom-spiral-race",
+    "ts": false,
     "tags": [],
     "title": "Custom Spiral Race",
     "titleCN": "自定义螺旋线竞速",
@@ -2674,6 +2938,7 @@ export default [
       "scatter"
     ],
     "id": "scatter-logarithmic-regression",
+    "ts": true,
     "tags": [],
     "title": "Logarithmic Regression",
     "titleCN": "对数回归(使用统计插件)",
diff --git a/src/editor/Editor.vue b/src/editor/Editor.vue
index 2070a26..91c3e7c 100644
--- a/src/editor/Editor.vue
+++ b/src/editor/Editor.vue
@@ -22,12 +22,18 @@
                   >
                 </el-tooltip>
                 <el-tooltip
-                  :content="$t('editor.tooltip.tsMode')"
+                  :content="
+                    $t(`editor.tooltip.${exampleConfig.ts ? 'tsMode' : 'noTs'}`)
+                  "
                   placement="bottom"
                 >
                   <a
-                    @click="changeLang('ts')"
-                    :class="{ ts: true, active: shared.typeCheck }"
+                    @click="exampleConfig.ts && changeLang('ts')"
+                    :class="{
+                      ts: true,
+                      active: shared.typeCheck,
+                      disabled: !exampleConfig.ts
+                    }"
                     >TS</a
                   >
                 </el-tooltip>
@@ -147,7 +153,12 @@ import CodeAce from './CodeAce.vue';
 import CodeMonaco from './CodeMonaco.vue';
 import FullCodePreview from './FullCodePreview.vue';
 import Preview from './Preview.vue';
-import { store, loadExampleCode, parseSourceCode } from '../common/store';
+import {
+  store,
+  loadExampleCode,
+  parseSourceCode,
+  getExampleConfig
+} from '../common/store';
 import { collectDeps, buildExampleCode } from '../../common/buildCode';
 import { goto } from '../common/route';
 import { mount } from '@lang/object-visualizer';
@@ -186,6 +197,8 @@ export default {
 
       fullCode: '',
 
+      exampleConfig: getExampleConfig(),
+
       fullCodeConfig: {
         mimimal: false,
         esm: true,
@@ -514,6 +527,15 @@ $handler-width: 5px;
         color: #3178c6;
       }
 
+      &.ts.disabled {
+        color: #ddd;
+        cursor: default;
+
+        &:hover {
+          text-decoration: none;
+        }
+      }
+
       &.js {
         color: #000;
       }
diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index 89518da..68fea47 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -102,21 +102,21 @@
 </template>
 
 <script>
-import { store, updateRunHash } from '../common/store';
+import {
+  getExampleConfig,
+  isGLExample,
+  store,
+  updateRunHash
+} from '../common/store';
 import { SCRIPT_URLS, URL_PARAMS } from '../common/config';
 import { loadScriptsAsync } from '../common/helper';
 import { createSandbox } from './sandbox';
 import debounce from 'lodash/debounce';
 import { addListener } from 'resize-detector';
-import CHART_LIST from '../data/chart-list-data';
-import CHART_LIST_GL from '../data/chart-list-data-gl';
 import { download } from './downloadExample';
 
-function findExample(item) {
-  return URL_PARAMS.c === item.id;
-}
-const example = CHART_LIST.concat(CHART_LIST_GL).find(findExample);
-const isGL = CHART_LIST_GL.find(findExample);
+const example = getExampleConfig();
+const isGL = isGLExample();
 
 function addDecalIfNecessary(option) {
   if (store.enableDecal) {
diff --git a/tool/build-example.js b/tool/build-example.js
index b23290b..32a26cc 100644
--- a/tool/build-example.js
+++ b/tool/build-example.js
@@ -264,9 +264,8 @@ async function takeScreenshot(
   // TODO puppeteer will have Navigation Timeout Exceeded: 30000ms exceeded error in these examples.
   const screenshotBlackList = [];
 
-  const files = await globby(
-    `${rootDir}public/examples/js/${isGL ? 'gl/' : ''}*.js`
-  );
+  const examplesRoot = `${rootDir}public/examples`;
+  const files = await globby(`${examplesRoot}/js/${isGL ? 'gl/' : ''}*.js`);
 
   const exampleList = [];
 
@@ -289,6 +288,9 @@ async function takeScreenshot(
         return;
       }
 
+      const tsFile = `${examplesRoot}/ts/${isGL ? 'gl/' : ''}${basename}.ts`;
+      const hasTs = fs.existsSync(tsFile);
+
       let fmResult;
       try {
         const code = fs.readFileSync(fileName, 'utf-8');
@@ -313,6 +315,7 @@ async function takeScreenshot(
           exampleList.push({
             category: category,
             id: basename,
+            ts: hasTs,
             tags: (fmResult.data.tags || '')
               .split(/,/g)
               .map((a) => a.trim())

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