diff --git a/src/pages/dashboard/base/index.ts b/src/pages/dashboard/base/index.ts index edbd4b2..315b133 100644 --- a/src/pages/dashboard/base/index.ts +++ b/src/pages/dashboard/base/index.ts @@ -149,19 +149,19 @@ export function constructInitDashboardDataset(type: string) { { value: 135, itemStyle: { - color: chartListColor()[1], + opacity: 0.2, }, }, { value: 118, itemStyle: { - color: chartListColor()[1], + opacity: 0.2, }, }, { value: 60, itemStyle: { - color: chartListColor()[1], + opacity: 0.2, }, }, ], @@ -1077,6 +1077,7 @@ export function getPieChartDataSet({ radius = 42, textColor, placeholderColor, + containerColor, }: { radius: number } & Record) { return { color: chartListColor(), @@ -1110,6 +1111,10 @@ export function getPieChartDataSet({ selectedMode: true, hoverAnimation: true, silent: true, + itemStyle: { + borderColor: containerColor, + borderWidth: 1, + }, label: { show: true, position: 'center', diff --git a/src/pages/dashboard/base/index.vue b/src/pages/dashboard/base/index.vue index 6ba8071..28bc8fe 100644 --- a/src/pages/dashboard/base/index.vue +++ b/src/pages/dashboard/base/index.vue @@ -203,7 +203,7 @@