diff --git a/packages/superset-ui-preset-chart-xy/src/BoxPlot/BoxPlot.tsx b/packages/superset-ui-preset-chart-xy/src/BoxPlot/BoxPlot.tsx index 0d0776aa8..4c6232a9d 100644 --- a/packages/superset-ui-preset-chart-xy/src/BoxPlot/BoxPlot.tsx +++ b/packages/superset-ui-preset-chart-xy/src/BoxPlot/BoxPlot.tsx @@ -120,9 +120,9 @@ export default class BoxPlot extends React.PureComponent { xScale={convertScaleToDataUIScale(channels.x.scale!.config)} yScale={convertScaleToDataUIScale(channels.y.scale!.config)} > - {children} {layout.renderXAxis()} {layout.renderYAxis()} + {children} )); } diff --git a/packages/superset-ui-preset-chart-xy/src/Line/Line.tsx b/packages/superset-ui-preset-chart-xy/src/Line/Line.tsx index c9cd4f173..4e5b20318 100644 --- a/packages/superset-ui-preset-chart-xy/src/Line/Line.tsx +++ b/packages/superset-ui-preset-chart-xy/src/Line/Line.tsx @@ -259,9 +259,9 @@ export default class LineChart extends PureComponent { xScale={convertScaleToDataUIScale(channels.x.scale!.config)} yScale={convertScaleToDataUIScale(channels.y.scale!.config)} > - {children} {layout.renderXAxis()} {layout.renderYAxis()} + {children} { xScale={convertScaleToDataUIScale(channels.x.scale!.config)} yScale={convertScaleToDataUIScale(channels.y.scale!.config)} > - {children} {layout.renderXAxis()} {layout.renderYAxis()} + {children} )); }