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/01 02:31:00 UTC

[incubator-echarts-examples] branch next updated: add transition in custom series

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 6a8c13e  add transition in custom series
6a8c13e is described below

commit 6a8c13ee20da079602e0c33c7ce17de9882e3c61
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Dec 1 10:30:43 2020 +0800

    add transition in custom series
---
 public/data/custom-cartesian-polygon.js | 1 +
 public/data/custom-error-bar.js         | 3 +++
 public/data/custom-error-scatter.js     | 3 +++
 public/data/custom-profile.js           | 1 +
 public/data/cycle-plot.js               | 4 +++-
 5 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/public/data/custom-cartesian-polygon.js b/public/data/custom-cartesian-polygon.js
index 63324ed..a018eda 100644
--- a/public/data/custom-cartesian-polygon.js
+++ b/public/data/custom-cartesian-polygon.js
@@ -30,6 +30,7 @@ function renderItem(params, api) {
 
     return {
         type: 'polygon',
+        transition: ['shape'],
         shape: {
             points: points
         },
diff --git a/public/data/custom-error-bar.js b/public/data/custom-error-bar.js
index 429d9b2..e0d20ee 100644
--- a/public/data/custom-error-bar.js
+++ b/public/data/custom-error-bar.js
@@ -35,6 +35,7 @@ function renderItem(params, api) {
         type: 'group',
         children: [{
             type: 'line',
+            transition: ['shape'],
             shape: {
                 x1: highPoint[0] - halfWidth, y1: highPoint[1],
                 x2: highPoint[0] + halfWidth, y2: highPoint[1]
@@ -42,6 +43,7 @@ function renderItem(params, api) {
             style: style
         }, {
             type: 'line',
+            transition: ['shape'],
             shape: {
                 x1: highPoint[0], y1: highPoint[1],
                 x2: lowPoint[0], y2: lowPoint[1]
@@ -49,6 +51,7 @@ function renderItem(params, api) {
             style: style
         }, {
             type: 'line',
+            transition: ['shape'],
             shape: {
                 x1: lowPoint[0] - halfWidth, y1: lowPoint[1],
                 x2: lowPoint[0] + halfWidth, y2: lowPoint[1]
diff --git a/public/data/custom-error-scatter.js b/public/data/custom-error-scatter.js
index df10d2e..4b06d1d 100644
--- a/public/data/custom-error-scatter.js
+++ b/public/data/custom-error-scatter.js
@@ -53,6 +53,7 @@ function renderItem(params, api) {
 
         children.push({
             type: 'line',
+            transition: ['shape'],
             shape: makeShape(
                 baseDimIdx,
                 highPoint[baseDimIdx] - halfWidth, highPoint[otherDimIdx],
@@ -61,6 +62,7 @@ function renderItem(params, api) {
             style: style
         }, {
             type: 'line',
+            transition: ['shape'],
             shape: makeShape(
                 baseDimIdx,
                 highPoint[baseDimIdx], highPoint[otherDimIdx],
@@ -69,6 +71,7 @@ function renderItem(params, api) {
             style: style
         }, {
             type: 'line',
+            transition: ['shape'],
             shape: makeShape(
                 baseDimIdx,
                 lowPoint[baseDimIdx] - halfWidth, lowPoint[otherDimIdx],
diff --git a/public/data/custom-profile.js b/public/data/custom-profile.js
index d7b4876..5cdab64 100644
--- a/public/data/custom-profile.js
+++ b/public/data/custom-profile.js
@@ -63,6 +63,7 @@ function renderItem(params, api) {
 
     return rectShape && {
         type: 'rect',
+        transition: ['shape'],
         shape: rectShape,
         style: api.style()
     };
diff --git a/public/data/cycle-plot.js b/public/data/cycle-plot.js
index d922582..6115ba7 100644
--- a/public/data/cycle-plot.js
+++ b/public/data/cycle-plot.js
@@ -54,6 +54,7 @@ function renderTrendItem(params, api) {
 
     return {
         type: 'polyline',
+        transition: ['shape'],
         shape: {
             points: points
         },
@@ -71,6 +72,7 @@ function renderAverageItem(param, api) {
 
     return {
         type: 'line',
+        transition: ['shape'],
         shape: {
             x1: point[0] - bandWidth / 2,
             x2: point[0] + bandWidth / 2,
@@ -105,7 +107,7 @@ option = {
     }],
     grid: {
         bottom: 70,
-        top: 120,
+        top: 120
     },
     xAxis: {
         data: months


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