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

sushuang pushed a commit to branch fix/ts-export-type
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 5956c51b02b6f4deb7d5810a2eb8cba37f2c962f
Author: 100pah <sushuang0...@gmail.com>
AuthorDate: Thu Jul 31 18:21:04 2025 +0800

    test(pie-coord-sys): migrate test cases: "pie on amap" and "pie on bmap" to 
separate file, to avoid affect other case if the external links are unavailable 
or disabled.
---
 test/pie-coordinate-system-amap.html |  94 +++++++++++++++++++
 test/pie-coordinate-system-bmap.html |  98 ++++++++++++++++++++
 test/pie-coordinate-system.html      | 170 +++++++++++------------------------
 3 files changed, 242 insertions(+), 120 deletions(-)

diff --git a/test/pie-coordinate-system-amap.html 
b/test/pie-coordinate-system-amap.html
new file mode 100644
index 000000000..0a5a67f5e
--- /dev/null
+++ b/test/pie-coordinate-system-amap.html
@@ -0,0 +1,94 @@
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<html>
+    <head>
+        <meta charset="utf-8">
+        <!-- THESE MAP API KEYS ARE ONLY FOR TESTING USAGE!!! -->
+        <script 
src="https://webapi.amap.com/maps?v=1.4.15&key=aa3e04a4e761abff1c875fb8d60551ed";></script>
+        <script src="lib/simpleRequire.js"></script>
+        <script src="lib/config.js"></script>
+        <script src="lib/dat.gui.min.js"></script>
+        <link rel="stylesheet" href="lib/reset.css" />
+        <script src="lib/testHelper.js"></script>
+    </head>
+    <body>
+        <style>
+        </style>
+
+        <div id="main9"></div>
+
+
+
+        <script>
+            require([
+                'echarts',
+                
'https://fastly.jsdelivr.net/npm/echarts-extension-amap/dist/echarts-extension-amap.min.js'
+            ], function (echarts) {
+
+                var option = {
+                    amap: {
+                        viewMode: '3d',
+                        center: [115, 30],
+                        zoom: 5
+                    },
+                    tooltip: {},
+                    series: [
+                        {
+                            type: 'pie',
+                            name: 'AMap',
+                            coordinateSystem: 'amap',
+                            radius: 20,
+                            center: [120, 30],
+                            data: [
+                                { value: 1048, name: 'A' },
+                                { value: 735, name: 'B' },
+                                { value: 580, name: 'C' },
+                                { value: 484, name: 'D' },
+                                { value: 300, name: 'E' }
+                            ]
+                        },
+                        {
+                            type: 'pie',
+                            name: 'No CRS',
+                            // coordinateSystem: 'amap',
+                            radius: 20,
+                            center: [110, 36],
+                            data: [
+                                { value: 1048, name: 'A' },
+                                { value: 735, name: 'B' },
+                                { value: 580, name: 'C' },
+                                { value: 484, name: 'D' },
+                                { value: 300, name: 'E' }
+                            ]
+                        }
+                    ]
+                };
+
+                testHelper.create(echarts, 'main9', {
+                    title: ['Pie series on AMap'],
+                    option: option
+                });
+
+            });
+        </script>
+
+    </body>
+</html>
diff --git a/test/pie-coordinate-system-bmap.html 
b/test/pie-coordinate-system-bmap.html
new file mode 100644
index 000000000..a8be14433
--- /dev/null
+++ b/test/pie-coordinate-system-bmap.html
@@ -0,0 +1,98 @@
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<html>
+    <head>
+        <meta charset="utf-8">
+        <!-- THESE MAP API KEYS ARE ONLY FOR TESTING USAGE!!! -->
+        <script 
src="https://api.map.baidu.com/api?v=2.0&ak=KOmVjPVUAey1G2E8zNhPiuQ6QiEmAwZu";></script>
+        <script src="lib/simpleRequire.js"></script>
+        <script src="lib/config.js"></script>
+        <script src="lib/dat.gui.min.js"></script>
+        <link rel="stylesheet" href="lib/reset.css" />
+        <script src="lib/testHelper.js"></script>
+    </head>
+    <body>
+        <style>
+        </style>
+
+        <div id="main8"></div>
+
+
+        <script>
+            require([
+                'echarts',
+                'extension/bmap'
+            ], function (echarts) {
+
+                var option = {
+                    bmap: {
+                        center: [115, 30],
+                        zoom: 5,
+                        roam: true,
+                    },
+                    tooltip: {},
+                    series: [
+                        {
+                            type: 'pie',
+                            name: 'BMap',
+                            coordinateSystem: 'bmap',
+                            radius: 20,
+                            center: [120, 30],
+                            data: [
+                                { value: 1048, name: 'A' },
+                                { value: 735, name: 'B' },
+                                { value: 580, name: 'C' },
+                                { value: 484, name: 'D' },
+                                { value: 300, name: 'E' }
+                            ]
+                        },
+                        {
+                            type: 'pie',
+                            name: 'No CRS',
+                            // coordinateSystem: 'bmap',
+                            radius: 20,
+                            center: [110, 36],
+                            data: [
+                                { value: 1048, name: 'A' },
+                                { value: 735, name: 'B' },
+                                { value: 580, name: 'C' },
+                                { value: 484, name: 'D' },
+                                { value: 300, name: 'E' }
+                            ]
+                        }
+                    ]
+                };
+
+                var chart = testHelper.create(echarts, 'main8', {
+                    title: ['Pie series on BMap'],
+                    option: option,
+                    buttons: [{
+                        text: 'Convert point [120, 30] to pixel',
+                        onclick: function () {
+                            alert(chart.convertToPixel('bmap', [120, 30]));
+                        }
+                    }]
+                });
+            });
+        </script>
+
+    </body>
+</html>
diff --git a/test/pie-coordinate-system.html b/test/pie-coordinate-system.html
index cdc8bf007..252f30bd9 100644
--- a/test/pie-coordinate-system.html
+++ b/test/pie-coordinate-system.html
@@ -22,8 +22,6 @@ under the License.
     <head>
         <meta charset="utf-8">
         <!-- THESE MAP API KEYS ARE ONLY FOR TESTING USAGE!!! -->
-        <script 
src="https://api.map.baidu.com/api?v=2.0&ak=KOmVjPVUAey1G2E8zNhPiuQ6QiEmAwZu";></script>
-        <script 
src="https://webapi.amap.com/maps?v=1.4.15&key=aa3e04a4e761abff1c875fb8d60551ed";></script>
         <script src="lib/simpleRequire.js"></script>
         <script src="lib/config.js"></script>
         <script src="lib/dat.gui.min.js"></script>
@@ -39,10 +37,7 @@ under the License.
         <div id="main3"></div>
         <div id="main4"></div>
         <div id="main5"></div>
-        <div id="main6"></div>
         <div id="main7"></div>
-        <div id="main8"></div>
-        <div id="main9"></div>
 
         <script>
             require([
@@ -219,21 +214,50 @@ under the License.
             ], function (echarts) {
                 var option = {
                     tooltip: {},
-                    xAxis: {
+                    grid: [
+                        {
+                            id: 'a',
+                            left: 20,
+                            width: '40%',
+                        },
+                        {
+                            id: 'b',
+                            right: 20,
+                            width: '40%',
+                        }
+                    ],
+                    xAxis: [{
+                        id: 'a',
+                        gridId: 'a',
                         type: 'category',
-                        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
-                    },
-                    yAxis: {
+                        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 
'Sun'],
+                    }, {
+                        id: 'b',
+                        gridId: 'b',
+                        type: 'category',
+                        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 
'Sun'],
+                    }],
+                    yAxis: [{
+                        id: 'a',
+                        gridId: 'a',
                         type: 'category',
                         data: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
                     },
+                    {
+                        id: 'b',
+                        gridId: 'b',
+                        type: 'category',
+                        data: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
+                    }],
                     series: [
                         {
                             type: 'pie',
-                            name: 'Cartesian2D(Category Axes)',
+                            name: 'Cartesian2D(Category Axes) 1',
                             coordinateSystem: 'cartesian2d',
                             radius: 20,
                             center: ['Tue', 'E'],
+                            xAxisId: 'a',
+                            yAxisId: 'a',
                             data: [
                                 { value: 1048, name: 'A' },
                                 { value: 735, name: 'B' },
@@ -241,6 +265,22 @@ under the License.
                                 { value: 484, name: 'D' },
                                 { value: 300, name: 'E' }
                             ]
+                        },
+                        {
+                            type: 'pie',
+                            name: 'Cartesian2D(Category Axes) 2',
+                            coordinateSystem: 'cartesian2d',
+                            radius: 20,
+                            center: ['Web', 'C'],
+                            xAxisId: 'a',
+                            yAxisId: 'a',
+                            data: [
+                                { value: 48, name: 'A' },
+                                { value: 135, name: 'B' },
+                                { value: 280, name: 'C' },
+                                { value: 984, name: 'D' },
+                                { value: 600, name: 'E' }
+                            ]
                         }
                     ]
                 };
@@ -389,115 +429,5 @@ under the License.
             });
         </script>
 
-        <script>
-            require([
-                'echarts',
-                'extension/bmap'
-            ], function (echarts) {
-
-                var option = {
-                    bmap: {
-                        center: [115, 30],
-                        zoom: 5,
-                        roam: true,
-                    },
-                    tooltip: {},
-                    series: [
-                        {
-                            type: 'pie',
-                            name: 'BMap',
-                            coordinateSystem: 'bmap',
-                            radius: 20,
-                            center: [120, 30],
-                            data: [
-                                { value: 1048, name: 'A' },
-                                { value: 735, name: 'B' },
-                                { value: 580, name: 'C' },
-                                { value: 484, name: 'D' },
-                                { value: 300, name: 'E' }
-                            ]
-                        },
-                        {
-                            type: 'pie',
-                            name: 'No CRS',
-                            // coordinateSystem: 'bmap',
-                            radius: 20,
-                            center: [110, 36],
-                            data: [
-                                { value: 1048, name: 'A' },
-                                { value: 735, name: 'B' },
-                                { value: 580, name: 'C' },
-                                { value: 484, name: 'D' },
-                                { value: 300, name: 'E' }
-                            ]
-                        }
-                    ]
-                };
-
-                var chart = testHelper.create(echarts, 'main8', {
-                    title: ['Pie series on BMap'],
-                    option: option,
-                    buttons: [{
-                        text: 'Convert point [120, 30] to pixel',
-                        onclick: function () {
-                            alert(chart.convertToPixel('bmap', [120, 30]));
-                        }
-                    }]
-                });
-            });
-        </script>
-
-        <script>
-            require([
-                'echarts',
-                
'https://fastly.jsdelivr.net/npm/echarts-extension-amap/dist/echarts-extension-amap.min.js'
-            ], function (echarts) {
-
-                var option = {
-                    amap: {
-                        viewMode: '3d',
-                        center: [115, 30],
-                        zoom: 5
-                    },
-                    tooltip: {},
-                    series: [
-                        {
-                            type: 'pie',
-                            name: 'AMap',
-                            coordinateSystem: 'amap',
-                            radius: 20,
-                            center: [120, 30],
-                            data: [
-                                { value: 1048, name: 'A' },
-                                { value: 735, name: 'B' },
-                                { value: 580, name: 'C' },
-                                { value: 484, name: 'D' },
-                                { value: 300, name: 'E' }
-                            ]
-                        },
-                        {
-                            type: 'pie',
-                            name: 'No CRS',
-                            // coordinateSystem: 'amap',
-                            radius: 20,
-                            center: [110, 36],
-                            data: [
-                                { value: 1048, name: 'A' },
-                                { value: 735, name: 'B' },
-                                { value: 580, name: 'C' },
-                                { value: 484, name: 'D' },
-                                { value: 300, name: 'E' }
-                            ]
-                        }
-                    ]
-                };
-
-                testHelper.create(echarts, 'main9', {
-                    title: ['Pie series on AMap'],
-                    option: option
-                });
-
-            });
-        </script>
     </body>
 </html>


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

Reply via email to