From 0042f4609899f1009d69c5eb732291834dd92010 Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Tue, 4 Jun 2019 18:45:17 -0700 Subject: [PATCH] fix: move series in front of xy gridlines (#119) --- packages/superset-ui-preset-chart-xy/src/BoxPlot/BoxPlot.tsx | 2 +- packages/superset-ui-preset-chart-xy/src/Line/Line.tsx | 2 +- .../superset-ui-preset-chart-xy/src/ScatterPlot/ScatterPlot.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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} )); }