From 0d763cbfc8b37313d159e8d8fe90be9cdb848f4d Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Thu, 2 Nov 2023 20:14:56 -0500 Subject: [PATCH] CE-604 Adjust legend dot size, padding, and font --- src/qqq/components/widgets/charts/StackedBarChart.tsx | 8 ++++++-- .../components/widgets/charts/piechart/PieChartConfigs.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/qqq/components/widgets/charts/StackedBarChart.tsx b/src/qqq/components/widgets/charts/StackedBarChart.tsx index 740559a..f949d83 100644 --- a/src/qqq/components/widgets/charts/StackedBarChart.tsx +++ b/src/qqq/components/widgets/charts/StackedBarChart.tsx @@ -51,8 +51,12 @@ export const options = { labels: { usePointStyle: true, pointStyle: "circle", - pointStyleWidth: 3, - padding: 20 + boxHeight: 8, + boxWidth: 8, + padding: 12, + font: { + size: 14 + } } } }, diff --git a/src/qqq/components/widgets/charts/piechart/PieChartConfigs.ts b/src/qqq/components/widgets/charts/piechart/PieChartConfigs.ts index 5981f76..4ae7bb0 100644 --- a/src/qqq/components/widgets/charts/piechart/PieChartConfigs.ts +++ b/src/qqq/components/widgets/charts/piechart/PieChartConfigs.ts @@ -84,8 +84,12 @@ function configs(labels: any, datasets: any) labels: { usePointStyle: true, pointStyle: "circle", - pointStyleWidth: 3, - padding: 20 + padding: 12, + boxHeight: 8, + boxWidth: 8, + font: { + size: 14 + } } }, },