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 8e231d84fd..b46956df9c 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 @@ -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 } } }