apache / echarts

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

How can I remove style change on out of range map serie #9920

Closed 19mariusz95 closed 3 years ago

19mariusz95 commented 5 years ago

General Questions

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

When my map series data are in range I would like to keep original behavior so item lightness is increased but for out of range data I would like to remove the animation and set specific color for out of range data

I tried: visualMap: { calculable: true, inRange: { color: ['#DAE2EE', '#0288D1'], }, outOfRange: { color: '#00AA00', } }, but color changes.

Also I found out that if outOfRange.color is red, green or blue animation is disabled.

Expected Behavior

There is no animation on out of range data

Current Behavior

Brightness changes when mouse over out of range data

Topics

Environment

Ovilia commented 5 years ago

@19mariusz95 Have you defined min and max in visualMap?

19mariusz95 commented 5 years ago

@Ovilia Yes, I have. My full visualMapConfig is as follows:

{
        seriesIndex: 0,
        min: 0,
        orient: 'horizontal',
        itemHeight: 260,
        itemWidth: 10,
        left: 'center',
        padding: [5, 10, 5, 10],
        calculable: true,
        inRange: {
          color: ['#DAE2EE', '#0288D1']
        },
        outOfRange: {
          color: '#00AA00'
        }
      }
Ovilia commented 5 years ago

@19mariusz95 Please provide the full option. Thanks!

19mariusz95 commented 5 years ago

@Ovilia My option is https://gist.github.com/19mariusz95/31271bd4b01393e73f9b55ca3d7ce170 Just put it in here: https://ecomfe.github.io/echarts-examples/public/editor.html?c=map-world-dataRange

Ovilia commented 5 years ago

I see. So you requested a feature that emphasis style should be configured (not changing opacity is one of the styles that can be configured). Is that right?

19mariusz95 commented 5 years ago

I would like to set out of range data to be in same color even if mouse cursor is over the area. At the same time I would like to be in range data to have the animation enabled - area changes its opacity when cursor over it.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 3 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!