Skip to content

Commit

Permalink
re-alias BentoChartsHistogram -> BentoHistogram
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 11, 2024
1 parent 75e3b61 commit f9b6b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/charts/Histogram.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from "react";
import PropTypes from "prop-types";
import { Histogram as BentoChartsHistogram } from "bento-charts";
import { Histogram as BentoHistogram } from "bento-charts";
import ChartContainer from "./ChartContainer";

const transformAgeData = (data) => data && data.map(({ ageBin, count }) => ({ x: ageBin, y: count }));
Expand All @@ -10,7 +10,7 @@ const Histogram = ({ title = "Histogram", data = [], chartHeight = 300, unit = "

return (
<ChartContainer title={title} empty={!Array.isArray(data) || !data.length}>
<BentoChartsHistogram data={transformedData} height={chartHeight} removeEmpty={false} units={unit} />
<BentoHistogram data={transformedData} height={chartHeight} removeEmpty={false} units={unit} />
</ChartContainer>
);
};
Expand Down

0 comments on commit f9b6b8b

Please sign in to comment.