This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-endLabel in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/fix-endLabel by this push: new 91d1e0393 test(endLabel): add test case 91d1e0393 is described below commit 91d1e0393052726d4a4b12c85f70f6f12518a8c8 Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Tue Jul 4 17:31:23 2023 +0800 test(endLabel): add test case --- test/line-endLabel.html | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/test/line-endLabel.html b/test/line-endLabel.html index 860fec084..a0d5db209 100644 --- a/test/line-endLabel.html +++ b/test/line-endLabel.html @@ -36,7 +36,7 @@ under the License. height: 1000px; margin-bottom: 30px; } - #main2, #main3 { + #main2, #main3, #main4 { width: 100%; height: 300px; margin-bottom: 30px; @@ -129,6 +129,7 @@ under the License. <div id="main1"></div> <div id="main2"></div> <div id="main3"></div> + <div id="main4"></div> <script> @@ -433,5 +434,46 @@ under the License. }) </script> + + <script> + + + require([ + 'echarts' + ], function (echarts) { + + var chart = echarts.init(document.getElementById('main4')); + var option = { + title: [{ + text: 'endLabel should not fail with null data', + textAlign: 'center', + left: '50%', + top: 0 + }], + xAxis: [{ + data: ['a', 'b'] + }], + yAxis: [{ + }], + series: [{ + type: 'line', + data: [1, 2], + endLabel: { + show: true + } + }, { + type: 'line', + data: [null, '-'], + endLabel: { + show: true + } + }], + animationDuration: 5000 + }; + chart.setOption(option); + + }) + + </script> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org