Update src/components/histogram/histogram.tsx
Co-authored-by: Hannah Park <70654324+hannahcode@users.noreply.github.com>
This commit is contained in:
parent
e1bde966bc
commit
397b232ba1
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ export const Histogram = ({ data }: Props) => {
|
|||
const min = 10
|
||||
const max = Math.ceil(Math.max.apply(null, data)*1.2)
|
||||
return(
|
||||
<div className="columns-1 justify-left m-2 bg-blue-300 text-sm">
|
||||
<div className="columns-1 justify-left m-2 text-sm">
|
||||
{ data.map(( value, i ) => (
|
||||
<Progress index={i} size={min+100*value/max} label={String(value)} />
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue