G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

🐛 [BUG] Heatmap密度图展示问题,寻求解决方案

Open Mr-jili opened this issue 1 year ago • 0 comments

🐛 Bug description [Please make everyone to understand it]

热力图当数值为0时或者数值中的最小值时,会出现没有颜色的情况,正常情况应该是当前设定color的第一个值

Please provide a link by forking these links G2Plot or GitHub repo, a minimal reproduction.

  • Required Link to minimal reproduction:

📷 Step to reproduce

第一种情况:[{ x: 20, y: 30, value: 0 }, { x: 20, y: 30, value: 10 }]当value为0时不会显示颜色 第二种情况:[{ x: 20, y: 30, value: 450 }, { x: 20, y: 30, value: 10 }]当value为10时不会显示颜色

🏞 Expected result

期望展示设置color的第一个颜色,通过设置minOpacity来进行控制

🚑 Any additional [like screenshots]

  • G2Plot Version:
  • Platform:

Mr-jili avatar Feb 01 '24 09:02 Mr-jili