Skip to content

Commit c9c34eb

Browse files
committed
fix: series on top of axes
1 parent c341137 commit c9c34eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/Chart.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ function ChartInner<TDatum>({
647647
}}
648648
onClick={e => options.onClickDatum?.(focusedDatum, e)}
649649
>
650+
<g className="axes">
651+
{[primaryAxis, ...secondaryAxes].map(axis => (
652+
<AxisLinear key={[axis.position, axis.id].join('')} {...axis} />
653+
))}
654+
</g>
650655
<g
651656
className="Series"
652657
style={{
@@ -655,11 +660,6 @@ function ChartInner<TDatum>({
655660
>
656661
{seriesEl}
657662
</g>
658-
<g className="axes">
659-
{[primaryAxis, ...secondaryAxes].map(axis => (
660-
<AxisLinear key={[axis.position, axis.id].join('')} {...axis} />
661-
))}
662-
</g>
663663
<Voronoi />
664664
{options.renderSVG?.() ?? null}
665665
</svg>

0 commit comments

Comments
 (0)