feat: 新增柱状图配置

This commit is contained in:
奔跑的面条
2025-06-16 16:10:52 +08:00
parent 8bb65e57f4
commit 99366efc8c
14 changed files with 221 additions and 18 deletions
@@ -6,8 +6,15 @@ import data from './data.json'
import axisThemeJson from '@/settings/vchartThemes/axis.theme.json'
import { ChatCategoryEnum, IBarOption } from '../../index.d'
import { merge, cloneDeep } from 'lodash'
import { vChartGlobalThemeJson } from '@/settings/vchartThemes'
export const includes = ['legends', 'tooltip']
const barConfig = merge(cloneDeep(vChartGlobalThemeJson.bar), {
style: {
width: 15
}
})
export const includes = ['legends', 'tooltip', 'label']
export const option: IBarOption & { dataset?: any } = {
// 图表配置
type: 'bar',
@@ -49,6 +56,9 @@ export const option: IBarOption & { dataset?: any } = {
...axisThemeJson.grid.style
}
}
},
bar: {
...barConfig
}
}