fix(图表): 修复热力图颜色切换失效

This commit is contained in:
wisonic-s
2025-05-20 15:24:46 +08:00
committed by GitHub
parent e7861bc987
commit 9671f37bab

View File

@@ -258,6 +258,7 @@ export class TableG2Chart extends G2ChartView {
const quotaLegendOption = {
scale: {
color: {
type: 'linear',
interpolate: () => {
return c => colors[Math.floor(c * (colors.length - 1))]
}