Closed 19mariusz95 closed 3 years ago
@19mariusz95 Have you defined min
and max
in visualMap
?
@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'
}
}
@19mariusz95 Please provide the full option. Thanks!
@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
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?
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.
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.
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!
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