Fix up deps

This commit is contained in:
Marshall Polaris 2022-09-27 16:25:44 -07:00
parent b8091df864
commit 5ff21a65f7

View File

@ -125,7 +125,7 @@ export const SingleValueDistributionChart = (props: {
const xAxis = axisBottom<number>(xScale).ticks(w / 100) const xAxis = axisBottom<number>(xScale).ticks(w / 100)
const yAxis = axisLeft<number>(yScale).tickFormat(fmtY) const yAxis = axisLeft<number>(yScale).tickFormat(fmtY)
return { fmtX, fmtY, xAxis, yAxis } return { fmtX, fmtY, xAxis, yAxis }
}, [xScale, yScale]) }, [w, xScale, yScale])
const onSelect = useEvent((ev: D3BrushEvent<DistributionPoint>) => { const onSelect = useEvent((ev: D3BrushEvent<DistributionPoint>) => {
if (ev.selection) { if (ev.selection) {
@ -218,7 +218,7 @@ export const MultiValueHistoryChart = (props: {
: axisLeft<number>(yScale) : axisLeft<number>(yScale)
return { fmtX, fmtY, xAxis, yAxis } return { fmtX, fmtY, xAxis, yAxis }
}, [h, pct, xScale, yScale]) }, [w, h, pct, xScale, yScale])
const series = useMemo(() => { const series = useMemo(() => {
const d3Stack = stack<MultiPoint, number>() const d3Stack = stack<MultiPoint, number>()
@ -331,7 +331,7 @@ export const SingleValueHistoryChart = (props: {
? axisLeft<number>(yScale).tickValues(pctTickValues).tickFormat(fmtY) ? axisLeft<number>(yScale).tickValues(pctTickValues).tickFormat(fmtY)
: axisLeft<number>(yScale) : axisLeft<number>(yScale)
return { fmtX, fmtY, xAxis, yAxis } return { fmtX, fmtY, xAxis, yAxis }
}, [h, pct, xScale, yScale]) }, [w, h, pct, xScale, yScale])
const onSelect = useEvent((ev: D3BrushEvent<HistoryPoint>) => { const onSelect = useEvent((ev: D3BrushEvent<HistoryPoint>) => {
if (ev.selection) { if (ev.selection) {