Use ColorScale type consistently
parent
9b088702dc
commit
bf30db5862
|
@ -16,6 +16,7 @@ import {
|
|||
HistogramData,
|
||||
Margins,
|
||||
HoverData,
|
||||
ColorScale,
|
||||
} from 'src/types/histogram'
|
||||
|
||||
const PADDING_TOP = 0.2
|
||||
|
@ -31,7 +32,7 @@ interface Props {
|
|||
dataStatus: RemoteDataState
|
||||
width: number
|
||||
height: number
|
||||
colorScale: (group: string) => string
|
||||
colorScale: ColorScale
|
||||
onZoom: (TimePeriod) => void
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import {
|
|||
HistogramDatum,
|
||||
HoverData,
|
||||
TooltipAnchor,
|
||||
ColorScale,
|
||||
} from 'src/types/histogram'
|
||||
|
||||
const BAR_BORDER_RADIUS = 4
|
||||
|
@ -139,7 +140,7 @@ interface Props {
|
|||
data: HistogramData
|
||||
xScale: ScaleTime<number, number>
|
||||
yScale: ScaleLinear<number, number>
|
||||
colorScale: (group: string) => string
|
||||
colorScale: ColorScale
|
||||
hoverData?: HoverData
|
||||
onHover: (h: HoverData) => void
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue