Version
last
Link to Minimal Reproduction
Steps to Reproduce
1.- Create a Heatmap using VisualMap.
2.- The Heatmap works correctly without categorization
3.- A categorization is added (lines 97-100 & 157,158 )
4.- The gradiaton expected doesn't work: a list (for "Critical" category in the example) is passed and it doesn't work (black color in the background), a string is valid (for any other category in the example) (line 167)
Current Behavior
The gradiaton expected doesn't work: a list (for "Critical" category in the example) is passed and it doesn't work (black color in the background), a string is valid (for any other category in the example) (line 167)
Expected Behavior
The gradiation of heatmap works if a list of colors is passed.
Environment
- OS: Linux
- Browser: Chromium / Firefox
- Framework:
Any additional comments?
No response
3条答案
按热度按时间bpsygsoo1#
the Minimal Reproduction is hardly "minimal"...
color: {"Critical":['#FFF9C4',...
is not a valid syntax.dimension is missing.
Demo on how to use VisualMap with categories.
vc6uscn92#
Hello @helgasoft, thank you for your response.
In our case the problem is not using categories in VisualMap, the problem is using them in a VisualMap with Heatmap.
If we don't categorize the heatmap works correctly, but when we try to use categories inside of these VisualMap + HeatMap the gradiation of the heatmap is not possible.
uyhoqukh3#
having the same bug, here are my minimal tests cases :
looks like something related to heatmap is trying to cast the categories as integers and it fails when it comes to letters. Maybe something like this ?
echarts/src/chart/heatmap/HeatmapView.ts
Line 44 in 75dd430
| | functiongetIsInPiecewiseRange( |