Closed carrie-xin closed 4 years ago
@carrie-xin
You need to registerMap before you try to init the echarts. You can call it in app.module.ts
or somewhere else
@xieziyu thank you for your response, but it seems the problem of import json, when i change
import * as citiesJson from "echarts/map/json/china-cities.json";
to
import citiesJson from "echarts/map/json/china-cities.json";
it works fine for me.
@carrie-xin You need to registerMap before you try to init the echarts. You can call it in
app.module.ts
or somewhere else
Whats the best way to do that ?
I'm using ngx-echarts to render china cities map on my dashboard, but somthing error happend
here's my package version and main code
Is there anyway to solve this problem?