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

[bug] 加载中国地图时,右下角的小岛屿都被隐藏 #18612

Closed muzlevy closed 1 year ago

muzlevy commented 1 year ago

Version

5.0.2

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. 利用 json 数据来注册地图: echarts.registerMap("xxx",json)
  2. 然后加载

Current Behavior

问题:渲染的 canvas 比较小的情况下,右下角部分岛屿会直接被隐藏;canvas 大一点的话就不会。这是什么引起的?可以解决吗?

如下图: image

画布变大后显示完整了: image

Expected Behavior

no.

Environment

- OS:Ubuntu 20.04.6 LTS
- Browser: Chrome 111.0.5563.146(正式版本)
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

@muzlevy 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** [Bug] When loading the map of China, the small islands in the lower right corner are hidden **BODY** ### Version 5.0.2 ### Link to Minimal Reproduction No response ### Steps to Reproduce 1. Register the map with 'json' data: 'echarts.registerMap('xxx',json)' 2. Then load ### Current Behavior ### Problem: When the rendered 'canvas' is relatively small, some islands in the lower right corner will be directly hidden; 'canvas' is not a little bigger. What causes this? Can it be solved? As shown in the following figure: ![image](https://github.com/apache/echarts/assets/72795965/e13ba215-5503-4d9b-835b-7e5edb949d90) The canvas is complete when it gets bigger: ![image](https://github.com/apache/echarts/assets/72795965/a539d4b2-7edb-4b5d-83ac-d2f2a87d812e) ### Expected Behavior no. ### Environment ```markdown - OS:Ubuntu 20.04.6 LTS - Browser: Chrome 111.0.5563.146 (official version) - Framework: ``` ### Any additional comments? _No response_
echarts-bot[bot] commented 1 year ago

@muzlevy Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

helgasoft commented 1 year ago

looks like subpixel issue to me. Maybe the real question is "How does ECharts handle subpixel display?". I suppose they are ignored (not shown).

muzlevy commented 1 year ago

looks like subpixel issue to me. Maybe the real question is "How does ECharts handle subpixel display?". I suppose they are ignored (not shown).

Thank you very much, I can't express it well, this is what I want to ask.

plainheart commented 1 year ago

@muzlevy I can't reproduce this issue with this example. This issue should have been fixed by ecomfe/zrender#760. Instead of the v5.0.2, please try to use the newer versions >= v5.1.2.