fix(图表): 修复热力图字段为指标时水平图例过滤展示不全

This commit is contained in:
wisonic-s
2025-10-21 14:07:20 +08:00
committed by wisonic-s
parent 1e761c1f30
commit 2fa39bdf2e

View File

@@ -259,7 +259,7 @@ export class TableG2Chart extends G2ChartView {
scale: {
color: {
type: 'linear',
interpolate: () => {
interpolate() {
return c => colors[Math.floor(c * (colors.length - 1))]
}
}
@@ -267,7 +267,8 @@ export class TableG2Chart extends G2ChartView {
legend: {
color: {
color: colors,
label: false
label: false,
step: 0.00000001
}
}
}