diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Radar/transformProps.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Radar/transformProps.ts index 2c2a994d506a8..cd981a21a9b7e 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Radar/transformProps.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Radar/transformProps.ts @@ -39,6 +39,7 @@ import { import { DEFAULT_LEGEND_FORM_DATA } from '../types'; import { extractGroupbyLabel, + getChartPadding, getColtypesMapping, getLegendProps, } from '../utils/series'; @@ -82,6 +83,7 @@ export default function transformProps( labelPosition, legendOrientation, legendType, + legendMargin, metrics = [], numberFormat, dateFormat, @@ -201,6 +203,7 @@ export default function transformProps( const series: RadarSeriesOption[] = [ { type: 'radar', + ...getChartPadding(showLegend, legendOrientation, legendMargin), animation: false, emphasis: { label: { diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts index 9726c3ac066ca..b63feb35737c5 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts @@ -89,6 +89,7 @@ export default function transformProps( forecastEnabled, legendOrientation, legendType, + legendMargin, logAxis, markerEnabled, markerSize, @@ -245,7 +246,7 @@ export default function transformProps( legendOrientation, addYAxisLabelOffset, zoomable, - null, + legendMargin, addXAxisLabelOffset, yAxisTitlePosition, yAxisTitleMargin,