?????????????????????? import * as echarts from "echarts"; import "echarts-gl";
var ROOT_PATH = "https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples"; var chartDom = document.getElementById("main"); var myChart = echarts.init(chartDom); var option; option = { backgroundColor: "#000", globe: { baseTexture: ROOT_PATH + '/data-gl/asset/earth.jpg', globeOuterRadius: 116, shading: "lambert", environment: ROOT_PATH + "/data-gl/asset/starfield.jpg", atmosphere: { show: true, }, light: { ambient: { intensity: 0.1, }, main: { intensity: 1.5, }, }, }, series: [ { type: "scatter3D", coordinateSystem: "globe", symbolSize: 20, label: { show: true, }, data: [ { // ???????????? name: "????1", // ???????? value: [100, 14, 10], }, { name: "????2", value: [34, 50, 15], }, ], }, ], }; option && myChart.setOption(option); myChart.on("click", function (params) { console.log(params); }); ????????????????????????????????????????????????