Skip to content

Commit

Permalink
fix: fix vertical position for categorical axis (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
onc authored Jun 8, 2022
1 parent ced42a1 commit 0f90d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/missing-coordinates/src/coordinates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function getCategoricalAxisPosition(
return drawConfig.axisHeight / 2;
}
return (
(categoricalItems.indexOf(value) / (categoricalItems.length - 1)) *
(1 - categoricalItems.indexOf(value) / (categoricalItems.length - 1)) *
drawConfig.axisHeight
);
}
Expand Down

0 comments on commit 0f90d84

Please # to comment.