apache / echarts

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

[Bug] Visual Map display Error #18386

Open kuerka opened 1 year ago

kuerka commented 1 year ago

Version

5.4.0

Link to Minimal Reproduction

https://github.com/2796673723/echarts-visualmap

Steps to Reproduce

I want to set different colors inside and outside of a range by using visualMap. Examples options are as follows:

{
  show: false,
  pieces: [
    {
      gte: 0,
      lte: limit,
      color: '#4A90E2',
    },
  ],
  outOfRange: { color: '#FF0000' },
}

Current Behavior

The line at the bottom appears in two colors. image

Expected Behavior

As per the settings I want the bottom line to only show blue.

Environment

- OS:Windows10
- Browser:Chrome 110.0.5481.180
- Framework:Vue@2.7

Any additional comments?

No response

helgasoft commented 1 year ago

yes, a bug on pieces border values, Demo Code image

symlons commented 1 year ago

It seems like that VisualMap isn't accounting for the LineWidth.

Steve245270533 commented 1 year ago

This problem is the same as what I encountered. Have you resolved it in the end?

day-xue commented 1 year ago

为什么还没解决啊

Ovilia commented 1 year ago

@Steve245270533 @day-xue This is an open-source project and if you want your issues to be fixed faster, the best way is to make a pull request rather than waiting for others to help.

akwangl commented 1 week ago

他为什么不设计成指定的数组下标来设置颜色