mynk2611 commented on issue #21290:
URL: https://github.com/apache/echarts/issues/21290#issuecomment-3423628275

   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
   ```
   /src/coord/axisDefault.ts
   /src/coord/axisDefault.ts
   @@ -121,8 +121,8 @@
      splitArea: {
        show: false,
        areaStyle: {
          color: [
    -       tokens.color.backgroundTransparent,
    -       tokens.color.backgroundTint
    +       tokens.color.backgroundTint,
    +       tokens.color.backgroundTransparent
          ]
        }
      },
   
   ```
   
   This change directly fixes the visual inconsistency:
   
   Before: The color of the top-left block is inconsistent with the rest of its 
column. <img width="1062" height="571" alt="Image" 
src="https://github.com/user-attachments/assets/a0648937-0088-407d-a393-a0e8f3cedc6a";
 />
   
   After: The color is now consistent for both SVG and Canvas renderers. <img 
width="1275" height="519" alt="Image" 
src="https://github.com/user-attachments/assets/80b7a581-6cb0-4786-8522-84878cf015c9";
 />
   
   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!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to