Skip to content

Commit

Permalink
fix: invert folder thermometer data direction (zkrising#1190)
Browse files Browse the repository at this point in the history
better lamps/grades should start from bottom,
so that the cumulative lamps/grades can be deduced more easily
  • Loading branch information
guardianblue authored and beer-psi committed Nov 26, 2024
1 parent 2c4c483 commit 351156e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/game/folder/FolderDistributionTable.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChangeOpacity } from "util/color-opacity";
import { TACHI_BAR_THEME } from "util/constants/chart-theme";
import { Reverse, StepFromToMax, PercentFrom } from "util/misc";
import { StepFromToMax, PercentFrom } from "util/misc";
import { ResponsiveBar } from "@nivo/bar";
import { BarChartTooltip } from "components/charts/ChartTooltip";
import MiniTable from "components/tables/components/MiniTable";
Expand Down Expand Up @@ -63,7 +63,7 @@ function FolderThermometer<T extends string>({
return (
<td rowSpan={keys.length} style={{ width: 200, height: 40 * keys.length }}>
<ResponsiveBar
keys={Reverse(keys)}
keys={keys}
data={[Object.assign({ id: "" }, values)]}
theme={Object.assign({}, TACHI_BAR_THEME)}
// @ts-expect-error temp
Expand Down

0 comments on commit 351156e

Please sign in to comment.