Merge pull request #8042 from dataease/pr@dev@fix_symbol_map_time_color_field

fix(视图): 修复符号地图色彩字段为时间时不显示符号
This commit is contained in:
wisonic-s 2024-02-18 16:23:20 +08:00 committed by GitHub
commit cca32ec96f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,7 +455,11 @@ export default {
})
const colorAxis = JSON.parse(chart.xaxisExt)
if (colorAxis && colorAxis.length) {
this.pointLayer.color('color', colors)
this.pointLayer
.scale('color', {
type: 'cat'
})
.color('color', colors)
} else {
this.pointLayer.color(colors[0])
}