Skip to content

Commit

Permalink
Merge pull request #56 from NewWays-TechForImpactKAIST/aju-nice
Browse files Browse the repository at this point in the history
Nice 👍
  • Loading branch information
happycastle114 authored Nov 30, 2023
2 parents 8fc7335 + 9fdf2ae commit 886a6ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/organisms/Histogram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ interface CustomHistogramConfig extends HistogramConfig {
}

export const Histogram = ({ data }: Props) => {
const ageMin = data[0].binMin - 1;
const ageMax = data[data.length - 1].binMax + 1;
const [countMax, setCountMax] = useState<number>(data[0].count);

const [binWidth, setBinWidth] = useState<number>(
Expand Down Expand Up @@ -81,9 +79,8 @@ export const Histogram = ({ data }: Props) => {
},
meta: {
range: {
min: ageMin,
max: ageMax,
tickInterval: 1,
nice: true,
},
count: {
min: 0,
Expand Down

0 comments on commit 886a6ef

Please sign in to comment.