antvis / G2Plot

:dango: An interactive and responsive charting library based on G2.
https://g2plot.antv.antgroup.com
MIT License
2.56k stars 607 forks source link

🥰 [FEATURE] 热力图建议增加个最小透明度配置 #3824

Closed S-Lemon closed 2 weeks ago

S-Lemon commented 3 weeks ago

🥰 Features description [Please make everyone to understand it]

期望可以在热力图配置中,增加一个最小透明度配置,用以将数据点的透明度不至于接近0导致看不见

🏞 What problem does this feature solve

在密度热力图中,当数据点的数值过小时,会出现alpha过小而看不见 image 红框这里其实还有一个数据点

🧐 What does the proposed API look like

类似heatmapjs文档 image

🚑 Any additional [like screenshots]

S-Lemon commented 3 weeks ago

关联g2 issue

S-Lemon commented 3 weeks ago

g2plot版本:v2.4.31

hustcc commented 2 weeks ago

G2 是支持这个配置的:https://g2.antv.antgroup.com/spec/mark/heatmap

G2Plot 使用 G2 4.x 不支持这个配置,也无法改进优化,建议直接升级 G2 5.0~