This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch template_less in repository https://gitbox.apache.org/repos/asf/superset.git
commit 83f47d3ca14acb7f67831aeed939d7595546c764 Author: Maxime Beauchemin <[email protected]> AuthorDate: Tue Mar 18 18:38:21 2025 -0700 fixing vizes --- .../plugins/plugin-chart-echarts/src/Gauge/constants.ts | 4 ++-- .../plugins/plugin-chart-echarts/src/Gauge/transformProps.ts | 1 + .../plugins/plugin-chart-echarts/src/Graph/transformProps.ts | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/constants.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/constants.ts index 757b99342e..597e0ff9b1 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/constants.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/constants.ts @@ -29,7 +29,7 @@ export const defaultGaugeSeriesOption = ( }, axisLine: { lineStyle: { - color: [[1, theme.colors.primary.light4]], + color: [[1, theme.colorSplit]], }, }, axisLabel: { @@ -42,7 +42,7 @@ export const defaultGaugeSeriesOption = ( }, }, detail: { - color: 'auto', + color: theme.colorText, }, }); diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts index e2dd9d4880..2a0ebd85cc 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Gauge/transformProps.ts @@ -194,6 +194,7 @@ export default function transformProps( }%`, ], fontSize: FONT_SIZE_MULTIPLIERS.detailFontSize * fontSize, + color: theme.colorText, }, }; if ( diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts index c98d616092..6e032f5c17 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Graph/transformProps.ts @@ -325,7 +325,10 @@ export default function transformProps( selectedMode, ...getChartPadding(showLegend, legendOrientation, legendMargin), animation: DEFAULT_GRAPH_SERIES_OPTION.animation, - label: DEFAULT_GRAPH_SERIES_OPTION.label, + label: { + ...DEFAULT_GRAPH_SERIES_OPTION.label, + color: theme.colorText, + }, lineStyle: DEFAULT_GRAPH_SERIES_OPTION.lineStyle, emphasis: DEFAULT_GRAPH_SERIES_OPTION.emphasis, },
