Commit 8c7e6432 authored by 水玉婷's avatar 水玉婷
Browse files

feat:柱图最小宽度,饼图选中样式调整

parent 0f428801
# 开发环境配置 # 开发环境配置
# VITE_API_BASE_URL=http://peddev.cmic.com.cn VITE_API_BASE_URL=http://peddev.cmic.com.cn
VITE_API_BASE_URL=http://10.17.86.60:8656 # VITE_API_BASE_URL=http://10.17.86.60:8656
# 应用基础路径 # 应用基础路径
VITE_BASE_PATH=/ai/ VITE_BASE_PATH=/ai/
......
...@@ -327,7 +327,8 @@ const getBaseSeriesConfig = (name: string, data: any[], color: string, yAxisInde ...@@ -327,7 +327,8 @@ const getBaseSeriesConfig = (name: string, data: any[], color: string, yAxisInde
itemStyle: { color }, itemStyle: { color },
barWidth: 'auto' as const, barWidth: 'auto' as const,
barGap: '30%', barGap: '30%',
barCategoryGap: '40%' barCategoryGap: '40%',
barMaxWidth: 30 // 最大宽度30px
}); });
// ========== 图表类型配置生成器 ========== // ========== 图表类型配置生成器 ==========
......
...@@ -293,11 +293,6 @@ const createPieChartOption = (pieData: any[]) => { ...@@ -293,11 +293,6 @@ const createPieChartOption = (pieData: any[]) => {
fontSize: isManyItems ? 12 : 14, fontSize: isManyItems ? 12 : 14,
fontWeight: 'bold', fontWeight: 'bold',
color: '#000' color: '#000'
},
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
} }
}, },
data: pieData, data: pieData,
......
...@@ -293,6 +293,11 @@ li { ...@@ -293,6 +293,11 @@ li {
color: @white; color: @white;
} }
// 图表块样式
.chart-block {
margin-top: 16px;
}
// 错误消息样式 // 错误消息样式
:deep(.message-error) { :deep(.message-error) {
line-height: 1.5; line-height: 1.5;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment