Uncaught (in promise) Error: Component series.map not exists. Load it first
Uncaught (in promise) Error: Component series.map not exists. Load it first.
at Function.entity.getClass (clazz.js:178)
at ExtendedClass. (Global.js:223)
at Array.forEach ()
at each (util.js:298)
at ExtendedClass.visitComponent (Global.js:212)
at Function.entity.topologicalTravel (component.js:125)
at ExtendedClass.mergeOption (Global.js:194)
at ExtendedClass.initBase (Global.js:663)
at ExtendedClass.resetOption (Global.js:141)
at ExtendedClass.setOption (Global.js:123)
index.vue?a44b:214 Array(102)
2. 오류 원인
vue.js에서 echarts 지도를 사용할 때 이 오류 알림이 발생했습니다. echarts의 series가 type:'map'에 도입되었습니다.
series: [{
name: ' ',
type: 'map',
mapType: 'hunan',
roam: true,
label: {
normal: {
show: true
},
emphasis: {
show: false
}
},
data: mapData
}]
3. 해결 방법
echarts 도형과 관련된 파일을 불러올 때 순서대로 추가되기 때문에 맵이 단독으로 부족합니다
const echarts = require('echarts/lib/echarts')
const axios = require('axios')
require('echarts/lib/chart/map')
require('echarts/lib/chart/bar')
require('echarts/lib/chart/line')
require('echarts/lib/component/tooltip')
require('echarts/lib/component/title')
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
React에서 ECharts 사용하기Line, Bar, Pie 등 다양한 차트를 제공하며, 정말 다양한 option이 있기 때문에 커스터마이징 할 수 있는 폭이 넓다. React에서 ECharts를 사용하기 위한 2가지 방법이 있다. echarts-f...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.