From e3a4bb79b3c1a08283267fafec9cc678c15e463f Mon Sep 17 00:00:00 2001 From: d066024 Date: Tue, 28 Jul 2020 12:11:40 +0200 Subject: [PATCH 1/2] fix(PieChart): added the option to style the tooltip label and items via the chartConfig, also added as item style default color sapTextColor, now the items are readable while using the dark theme --- packages/charts/src/components/PieChart/PieChart.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/charts/src/components/PieChart/PieChart.tsx b/packages/charts/src/components/PieChart/PieChart.tsx index c2569f5a888..fbf00330b9e 100644 --- a/packages/charts/src/components/PieChart/PieChart.tsx +++ b/packages/charts/src/components/PieChart/PieChart.tsx @@ -81,6 +81,8 @@ const PieChart: FC = forwardRef((props: PieChartProps, ref: Ref = forwardRef((props: PieChartProps, ref: Ref ))} - + {!noLegend && ( Date: Tue, 28 Jul 2020 12:21:28 +0200 Subject: [PATCH 2/2] fix(PieChart): default object --- packages/charts/src/components/PieChart/PieChart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/charts/src/components/PieChart/PieChart.tsx b/packages/charts/src/components/PieChart/PieChart.tsx index fbf00330b9e..72aed7829e0 100644 --- a/packages/charts/src/components/PieChart/PieChart.tsx +++ b/packages/charts/src/components/PieChart/PieChart.tsx @@ -55,6 +55,8 @@ export interface PieChartProps extends IChartBaseProps { measure: MeasureConfig; } +const tooltipItemDefaultStyle = { color: 'var (--sapTextColor)' }; + /** * import { PieChart } from '@ui5/webcomponents-react-charts/lib/PieChart'; */ @@ -81,8 +83,7 @@ const PieChart: FC = forwardRef((props: PieChartProps, ref: Ref