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/11/01 08:38:52 UTC

[echarts] 01/02: test(radar): update test for #15915

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

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

commit 8cecdd767a4599ac32523143718d0c12c19b4ea3
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Nov 1 16:34:02 2021 +0800

    test(radar): update test for #15915
---
 test/radar3.html | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/test/radar3.html b/test/radar3.html
index 6b6f64e..ca311d3 100644
--- a/test/radar3.html
+++ b/test/radar3.html
@@ -41,9 +41,14 @@ under the License.
                 var chart = echarts.init(document.getElementById('main'));
 
                 chart.setOption({
-                    title: {
+                    title: [{
                         text: '多雷达图'
-                    },
+                    }, {
+                        text: 'Tooltip series names should not be "-"',
+                        left: '25%',
+                        top: '70%',
+                        textAlign: 'center'
+                    }],
                     tooltip: {
                         trigger: 'axis'
                     },
@@ -54,13 +59,18 @@ under the License.
                     radar: [
                         {
                             indicator: [
-                                {text: '品牌', max: 100},
-                                {text: '内容', max: 100},
-                                {text: '可用性', max: 100},
+                                {name: '品牌', max: 100},
+                                {name: '内容', max: 100},
+                                {name: '可用性', max: 100},
+                                // text is deprecated
                                 {text: '功能', max: 100}
                             ],
                             center: ['25%',200],
-                            radius: 80
+                            radius: 80,
+                            axisName: {
+                                show: false,
+                                formatter: 'name: {value}'
+                            }
                         },
                         {
                             indicator: [

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