Skip to content

Commit

Permalink
fix: series on top of axes
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 19, 2021
1 parent c341137 commit c9c34eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ function ChartInner<TDatum>({
}}
onClick={e => options.onClickDatum?.(focusedDatum, e)}
>
<g className="axes">
{[primaryAxis, ...secondaryAxes].map(axis => (
<AxisLinear key={[axis.position, axis.id].join('')} {...axis} />
))}
</g>
<g
className="Series"
style={{
Expand All @@ -655,11 +660,6 @@ function ChartInner<TDatum>({
>
{seriesEl}
</g>
<g className="axes">
{[primaryAxis, ...secondaryAxes].map(axis => (
<AxisLinear key={[axis.position, axis.id].join('')} {...axis} />
))}
</g>
<Voronoi />
{options.renderSVG?.() ?? null}
</svg>
Expand Down

1 comment on commit c9c34eb

@vercel
Copy link

@vercel vercel bot commented on c9c34eb Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.