You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2025/07/31 18:35:32 UTC
(superset) 02/02: theming works
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch fix-pie-total
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 65273353932e4609171e8e7760aceedd79b7be4a
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Thu Jul 31 11:35:21 2025 -0700
theming works
---
.../plugins/plugin-chart-echarts/src/Pie/transformProps.ts | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts
index 6b729de28a..0506ea7710 100644
--- a/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts
+++ b/superset-frontend/plugins/plugin-chart-echarts/src/Pie/transformProps.ts
@@ -108,13 +108,13 @@ function getTotalValuePadding({
if (chartPadding.left) {
// When legend is on the left, shift text right to center it in the available space
const leftPaddingPercent = (chartPadding.left / width) * 100;
- const adjustedLeftPercent = 50 + (leftPaddingPercent * 0.25);
+ const adjustedLeftPercent = 50 + leftPaddingPercent * 0.25;
padding.left = `${adjustedLeftPercent}%`;
}
if (chartPadding.right) {
// When legend is on the right, shift text left to center it in the available space
const rightPaddingPercent = (chartPadding.right / width) * 100;
- const adjustedLeftPercent = 50 - (rightPaddingPercent * 0.75);
+ const adjustedLeftPercent = 50 - rightPaddingPercent * 0.75;
padding.left = `${adjustedLeftPercent}%`;
}
return padding;
@@ -445,6 +445,7 @@ export default function transformProps(
text: t('Total: %s', numberFormatter(totalValue)),
fontSize: 16,
fontWeight: 'bold',
+ fill: theme.colors.grayscale.dark2,
},
z: 10,
}