From 7eae8148b8dfa08eb011bd2d2de382021429688a Mon Sep 17 00:00:00 2001 From: jiawulin001 Date: Mon, 13 Jun 2022 15:13:28 +0800 Subject: [PATCH] extra testcases added --- test/bar-startValue.html | 114 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 106 insertions(+), 8 deletions(-) diff --git a/test/bar-startValue.html b/test/bar-startValue.html index a76557d1f2..73bb61fefd 100644 --- a/test/bar-startValue.html +++ b/test/bar-startValue.html @@ -39,6 +39,8 @@
+
+
@@ -53,6 +55,7 @@ ], function (echarts) { var option; var startValue0 = -200; + var ymin = -150; option = { xAxis: { type: 'category', @@ -62,7 +65,8 @@ } }, yAxis: { - type: 'value' + type: 'value', + min: ymin }, series: [{ data: [-120, 200, 150, 80, 70, 110, 130], @@ -73,6 +77,7 @@ var chart = testHelper.create(echarts, 'main0', { title: [ + `startValue has higher priority over min/max of axis,here startValue = ${startValue0}, yAxis.min = ${ymin}`, `The starting value of bars should be ${startValue0}`, ], option: option @@ -82,6 +87,48 @@ }); }); + +