mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(图表): 修复热力图颜色切换失效
This commit is contained in:
@@ -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))]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user