mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
fix(图表): 修复热力图字段为指标时水平图例过滤展示不全
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user