Skip to content

Commit

Permalink
fix 🐛: don't reverse yScale
Browse files Browse the repository at this point in the history
  • Loading branch information
squiles committed Dec 11, 2024
1 parent a3ef3e3 commit e7e620a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/charts/bar/bars-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const useBarsState = (
.paddingInner(PADDING_INNER)
.paddingOuter(PADDING_OUTER);
const yScaleInteraction = scaleBand()
.domain(bandDomain.reverse())
.domain(bandDomain)
.paddingInner(0)
.paddingOuter(0);

Expand Down Expand Up @@ -226,7 +226,7 @@ const useBarsState = (
xScale.range([0, chartWidth]);
yScaleInteraction.range([0, adjustedHeight]);
yScaleTimeRange.range([0, adjustedHeight]);
yScale.range([adjustedHeight, 0]);
yScale.range([0, adjustedHeight]);

const isMobile = useIsMobile();

Expand Down

0 comments on commit e7e620a

Please sign in to comment.