Uncaught Error: Component series.map3d not exists. Load it first.
See original GitHub issueUncaught Error: Component series.map3d not exists. Load it first. 这个是缺少哪个模块
import echarts from 'echarts';
import `'echarts-gl';`
import 'echarts-gl/src/chart/map3D';
let earth = {};
let data = [[-83,76.5,1.1],[-85.5,73.5,2.9],[-78,73,1.5],[-56,72.5,14.9],[-157.5,71.5,1.9],[-157,71.5,7.4],[23.5,71.5,1.3],[24,71.5,1.3],[24.5,71.5,1.3],[25,71.5,3.7],[25.5,71.5,3.8],[26,71.5,3.8],[-52.5,71,11.1],[21.5,71,2.1],[22,71,2.1],[22.5,71,5.2],[23,71,10.4],[23.5,71,7.1],[24,71,1.2],[24.5,71,1.1],[25,71,1.5],[25.5,71,3],[26,71,1.5],[26.5,71,1],[28.5,71,1],[29,71,1.2],[29.5,71,1.7],[30,71,1.7],[30.5,71,1.7],[18,70.5,2.4],[18.5,70.5,6.8],[19,70.5,2.4],[19.5,70.5,2.4],[20,70.5,4.9],[20.5,70.5,6.3],[21,70.5,1.6],[21.5,70.5,1.5]]
let max = -Infinity;
data = data.map(function (item) {
max = Math.max(item[2], max);
return {
geoCoord: item.slice(0, 2),
value: item[2]
}
});
data.forEach(function (item) {
item.barHeight = item.value / max * 50 + 0.1
});
let option = {
title : {
text: 'Gridded Population of the World',
x:'center',
y:'top',
textStyle: {
color: 'white'
}
},
dataRange: {
min: 0,
max: max,
text:['High','Low'],
realtime: false,
calculable : true,
color: ['red','yellow','lightskyblue']
},
series: [{
type: 'Map3d',
mapType: 'world',
baseLayer: {
backgroundColor: 'rgba(0, 150, 200, 0.5)'
},
data: [{}],
hoverable: false,
itemStyle: {
normal: {
areaStyle: {
color: 'rgba(0, 150, 200, 0.8)'
},
borderColor: '#777'
}
},
markBar: {
barSize: 0.6,
data: data
}
}]
}
earth.init = function (id,Data) {
earth.chart = echarts.init(document.getElementById(id));
earth.chart.setOption(option);
}
export default earth;
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Uncaught Error: Component series.force not exists. Load it first ...
According to the docs (click on the series node on the left menu to open it and see all types) series has no...
Read more >echart报错: Component series.map3D not exists. Load it first和 ...
echart报错: Component series.map3D not exists. Load it first和Cannot read property 'features' of null_hahala2333的博客-CSDN博客_unkown series map3d.
Read more >Component series.scatter3D not exists. Load it first - 掘金
Load it first ,让我很懵逼。 基于vue2、echarts5的数据大屏,主要用了echarts中的柱状图、折线图、饼图等基础图表,以及地图。 当接到可视化大屏需求时,你是否会有以下疑问:如何做一款定制化的数据大屏?
Read more >Component series.line not exists. Load it first." in vue-echarts ...
Coding example for the question "Error: Component series.line not exists. Load it first." in vue-echarts-Vue.js.
Read more >echart报错: Component series.map3D not ... - 程序员大本营
echart报错: Component series.map3D not exists. Load it first和Cannot read property 'features' of null,程序员大本营,技术文章内容聚合第一站。
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That seems to do it
import 'echarts-gl/dist/echarts-gl';
Having the same issue no matter what the series type is. I’m using Typescript
import * as echartsGl from 'echarts-gl'