Use ColorScale type consistently

log-viewer/histogram-tweaks
Christopher Henn 2018-06-27 16:58:07 -07:00
parent 9b088702dc
commit bf30db5862
No known key found for this signature in database
GPG Key ID: 909E48D5E1C526FA
2 changed files with 4 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}