You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Cenmingyang 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] The heatmap performs inconsistently with empty data.
BODY
Version6.0.0### Link to Minimal Reproductionhttps://codepen.io/gicocqqo-the-lessful/pen/OPMVYzw### Steps to Reproduce1-92-9The data is empty, but the performance on the chart is different; one has a background color and one does not.### Current BehaviorThe issue encountered during the development of the heat map.### Expected BehaviorThe performance should be consistent.### Environmentmarkdown- OS:- Browser:- Framework:### Any additional comments?No response
Color of split area. SplitArea color could also be set in color array, which the split lines would take as their colors in turns. Dark and light colors in turns are used by default.
yes, explicitly setting areaStyle.color fixes it, but OP was relying on the default color setting with splitArea: {show: true}. Demo
Similar issue reported already in #20634. Their example is with custom areaStyle.color and still shows the same problem in the upper left corner - Demo
I've been looking into this issue and found that the default order for splitArea.areaStyle.color in v6 is different from previous versions.
I found that by reverting the default color order in src/coord/axisDefault.ts, the inconsistent behavior is resolved for heatmaps with empty data. This fix works for both the Canvas and SVG renderers.
Activity
echarts-bot commentedon Sep 24, 2025
@Cenmingyang 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] The heatmap performs inconsistently with empty data.
BODY
Version6.0.0### Link to Minimal Reproductionhttps://codepen.io/gicocqqo-the-lessful/pen/OPMVYzw### Steps to Reproduce1-92-9The data is empty, but the performance on the chart is different; one has a background color and one does not.### Current BehaviorThe issue encountered during the development of the heat map.### Expected BehaviorThe performance should be consistent.### Environment
markdown- OS:- Browser:- Framework:### Any additional comments?No responsehelgasoft commentedon Sep 24, 2025
remove
splitAreafrom axes ?📌 please close issue if problem solved
Cenmingyang commentedon Sep 25, 2025
It can solve the problem, but I’d prefer to add splitArea, and I hope their behavior can be consistent.
helgasoft commentedon Sep 25, 2025
It appears to be a bug in
splitArea. Workaround is to setareaStyle:{opacity:0.99}in xAxis.splitArea.plainheart commentedon Sep 26, 2025
I don't think this is a bug since the documentation says:
helgasoft commentedon Sep 26, 2025
yes, explicitly setting
areaStyle.colorfixes it, but OP was relying on the default color setting withsplitArea: {show: true}.Demo
Similar issue reported already in #20634. Their example is with custom
areaStyle.colorand still shows the same problem in the upper left corner - Demoplainheart commentedon Sep 26, 2025
@helgasoft Thanks for your information. It should be a bug, as I can see the different behavior between SVG renderer and Canvas renderer in your demo.
mynk2611 commentedon Oct 20, 2025
Hello, @helgasoft @plainheart,
I've been looking into this issue and found that the default order for splitArea.areaStyle.color in v6 is different from previous versions.
I found that by reverting the default color order in src/coord/axisDefault.ts, the inconsistent behavior is resolved for heatmaps with empty data. This fix works for both the Canvas and SVG renderers.
Here is the code change I tested locally:
Diff
This change directly fixes the visual inconsistency on the test file that im running :
Before: The color of the top-left block is inconsistent with the rest of its column.
After: The color is now consistent for both SVG and Canvas renderers.
Let me know if this seems like the right approach. If so, I would be happy to create a pull request to resolve this issue. Thanks!