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 2021/08/24 05:47:30 UTC

[echarts] branch fix-polar updated: test(polar): update test case

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

ovilia pushed a commit to branch fix-polar
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/fix-polar by this push:
     new 29a1a27  test(polar): update test case
29a1a27 is described below

commit 29a1a27c9e3c3d7eb14dce948e41a458f3f8184b
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Aug 24 13:46:45 2021 +0800

    test(polar): update test case
---
 test/bar-polar-basic.html | 10 +++++++-
 test/line-animation.html  | 62 -----------------------------------------------
 2 files changed, 9 insertions(+), 63 deletions(-)

diff --git a/test/bar-polar-basic.html b/test/bar-polar-basic.html
index 3dab721..aefe933 100644
--- a/test/bar-polar-basic.html
+++ b/test/bar-polar-basic.html
@@ -59,7 +59,7 @@ under the License.
                     tooltip: {},
                     series: [{
                         type: 'bar',
-                        data: [1, 2, 4, 3, 6, 5, 7],
+                        data: [1, 2, 0, 3, 6, 5, 7],
                         coordinateSystem: 'polar',
                         itemStyle: {
                             normal: {
@@ -70,6 +70,14 @@ under the License.
                     }]
                 });
 
+                setTimeout(function () {
+                    chart.setOption({
+                        series: [{
+                            data: [1, 2, 4, 3, 6, 5, 7]
+                        }]
+                    });
+                });
+
                 chart.on('click', function (params) {
                     console.log(params);
                 });
diff --git a/test/line-animation.html b/test/line-animation.html
index fd9cdec..011fd69 100644
--- a/test/line-animation.html
+++ b/test/line-animation.html
@@ -49,8 +49,6 @@ under the License.
             }
         </style>
 
-        <div class="chart" id="main3"></div>
-
         <button onclick="change()">CHANGE</button>
         <div class="chart" id="main2"></div>
 
@@ -402,66 +400,6 @@ under the License.
         </script>
 
 
-        <script>
-
-            require([
-                'echarts'
-            ], function (echarts) {
-                var chart = echarts.init(document.getElementById('main3'), null, {
-                    renderer: 'svg'
-                });
-                option = {
-                    title: [
-                        {
-                            text: '0',
-                            x: 'center',
-                            top: '48%',
-                        },
-                    ],
-                    polar: {
-                        radius: ['65%', '80%'],
-                        center: ['50%', '50%'],
-                    },
-                    angleAxis: {
-                        max: 100,
-                        clockwise: true,
-                        axisLine: {
-                            show: true,
-                        },
-                    },
-                    radiusAxis: {
-                        type: 'category',
-                        show: true,
-                    },
-                    series: [
-                        {
-                            name: '',
-                            type: 'bar',
-                            roundCap: true,
-
-                            showBackground: true,
-                            backgroundStyle: {
-                                color: 'rgba(180, 180, 180, 0.2)',
-                            },
-                            data: [0],
-                            coordinateSystem: 'polar',
-                        },
-                    ],
-                    animation: 0
-                };
-
-                chart.setOption(option);
-
-                setTimeout(function() {
-                    option.series[0].data[0] = 30;
-                    option.title[0].text = option.series[0].data[0];
-                    chart.setOption(option, true);
-                }, 0);
-
-            });
-
-        </script>
-
 
     </body>
 </html>
\ No newline at end of file

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