diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts index 2a5b8ab6fb..8e231d84fd 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts @@ -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))] }