From ab67405de5a6bc11bf09347f8d0df8103e990391 Mon Sep 17 00:00:00 2001 From: joaopedromatias Date: Wed, 13 Mar 2024 07:57:30 -0300 Subject: [PATCH] chore: change order of initializing default layers --- packages/bar/src/props.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bar/src/props.ts b/packages/bar/src/props.ts index 63c59b90b..98c53fcf7 100644 --- a/packages/bar/src/props.ts +++ b/packages/bar/src/props.ts @@ -54,7 +54,7 @@ export const defaultProps = { export const svgDefaultProps = { ...defaultProps, - layers: ['grid', 'axes', 'bars', 'markers', 'legends', 'annotations', 'totals'] as BarLayerId[], + layers: ['grid', 'axes', 'bars', 'totals', 'markers', 'legends', 'annotations'] as BarLayerId[], barComponent: BarItem, defs: [], @@ -69,7 +69,7 @@ export const svgDefaultProps = { export const canvasDefaultProps = { ...defaultProps, - layers: ['grid', 'axes', 'bars', 'legends', 'annotations', 'totals'] as BarCanvasLayerId[], + layers: ['grid', 'axes', 'bars', 'totals', 'legends', 'annotations'] as BarCanvasLayerId[], pixelRatio: typeof window !== 'undefined' ? window.devicePixelRatio ?? 1 : 1, }