forked from github/dataease
refactor(图表): 柱状图等标签跟随主题
This commit is contained in:
parent
3d29ca3ff0
commit
dc5cb5be01
@ -85,11 +85,12 @@ const initSeriesLabel = () => {
|
||||
return
|
||||
}
|
||||
let initFlag = false
|
||||
const themeColor = dvMainStore.canvasStyleData.dashboard.themeColor
|
||||
const axisMap = yAxis.value.reduce((pre, next) => {
|
||||
let tmp = {
|
||||
...next,
|
||||
show: true,
|
||||
color: props.themes === 'dark' ? '#fff' : '#000',
|
||||
color: themeColor === 'dark' ? '#fff' : '#000',
|
||||
fontSize: COMPUTED_DEFAULT_LABEL.value.fontSize,
|
||||
showExtremum: false
|
||||
} as SeriesFormatter
|
||||
|
Loading…
Reference in New Issue
Block a user