| |
| <!-- |
| 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> |