|
|
@ -46,9 +46,9 @@ const StackBar: FC<StackBarProps> = (props) => { |
|
|
|
const backgroundColor = |
|
|
|
const backgroundColor = |
|
|
|
typeof colour === 'string' |
|
|
|
typeof colour === 'string' |
|
|
|
? colour |
|
|
|
? colour |
|
|
|
: Object.entries(colour).findLast( |
|
|
|
: Object.entries(colour) |
|
|
|
([mark]) => val >= Number(mark), |
|
|
|
.reverse() |
|
|
|
)?.[1] ?? GREY; |
|
|
|
.find(([mark]) => val >= Number(mark))?.[1] ?? GREY; |
|
|
|
|
|
|
|
|
|
|
|
let position: 'absolute' | 'relative' = 'relative'; |
|
|
|
let position: 'absolute' | 'relative' = 'relative'; |
|
|
|
let top: 0 | undefined; |
|
|
|
let top: 0 | undefined; |
|
|
|