apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

echarts/map/js/china.js 引入多次导致构建包体积增大 #18712

Closed yangjinjun3 closed 1 year ago

yangjinjun3 commented 1 year ago

Version

4.8.0

Link to Minimal Reproduction

Steps to Reproduce

import 'echarts/map/js/china.js'; geo: { map: 'china', roam: false, zoom: 1.23, label: { show: false, fontSize: '15' // color: "rgba(0,0,0,0.7)", } }

Current Behavior

echarts/map/js/china.js 引入多次导致构建包体积增大

Expected Behavior

echarts/map/js/china.js 引入多次导致构建包体积不要增加

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

@yangjinjun3 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** The introduction of echarts/map/js/china.js multiple times leads to an increase in the size of the build package **BODY** ### Version 4.8.0 ### Link to Minimal Reproduction not ### Steps to Reproduce import 'echarts/map/js/China.js'; geo: { map: 'China', roam: false, zoom: 1.23, label: { show: false, fontSize: '15' color: "rgba(0,0,0,0.7)", } } ### Current Behavior echarts/map/js/China.js was introduced multiple times, resulting in an increase in the size of the build package ### Expected Behavior echarts/map/js/China.js introduced multiple times causes the build package size not to increase ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_
plainheart commented 1 year ago

抱歉,地图数据自 ECharts 5.0.0 开始已经从主仓库及网站移除,且不再维护,请尝试自行处理。