diff --git a/common/constants/baselines.ts b/common/constants/baselines.ts index 11ca5b0ce..d6dbd8fb6 100644 --- a/common/constants/baselines.ts +++ b/common/constants/baselines.ts @@ -9,7 +9,7 @@ export const PEAK_SCHEDULED_SERVICE = { }; export const PEAK_SPEED = { - 'line-red': 21.4, + 'line-red': 21.2, 'line-orange': 18, 'line-blue': 20.5, 'line-green': 12.6, diff --git a/modules/headways/HeadwaysDetails.tsx b/modules/headways/HeadwaysDetails.tsx index d30531a7e..5471dc1eb 100644 --- a/modules/headways/HeadwaysDetails.tsx +++ b/modules/headways/HeadwaysDetails.tsx @@ -108,7 +108,7 @@ export function HeadwaysDetails() { /> diff --git a/modules/headways/charts/HeadwaysHistogramWrapper.tsx b/modules/headways/charts/HeadwaysHistogramWrapper.tsx index 451fed91e..902616f48 100644 --- a/modules/headways/charts/HeadwaysHistogramWrapper.tsx +++ b/modules/headways/charts/HeadwaysHistogramWrapper.tsx @@ -6,19 +6,19 @@ import { ChartPlaceHolder } from '../../../common/components/graphics/ChartPlace import { HeadwaysHistogram } from './HeadwaysHistogram'; interface HeadwaysHistogramWrapperProps { - headways: UseQueryResult; + query: UseQueryResult; toStation: Station | undefined; fromStation: Station | undefined; } export const HeadwaysHistogramWrapper: React.FC = ({ - headways, + query, toStation, fromStation, }) => { - const dataReady = headways.data && toStation && fromStation; - if (!dataReady) return ; + const dataReady = query.data && toStation && fromStation; + if (!dataReady) return ; return ( - + ); }; diff --git a/modules/tripexplorer/SubwayTripGraphs.tsx b/modules/tripexplorer/SubwayTripGraphs.tsx index 28aebd609..4b8f34d04 100644 --- a/modules/tripexplorer/SubwayTripGraphs.tsx +++ b/modules/tripexplorer/SubwayTripGraphs.tsx @@ -14,6 +14,7 @@ import { DwellsAggregateWrapper } from '../dwells/DwellsAggregateWrapper'; import { TravelTimesSingleWrapper } from '../traveltimes/TravelTimesSingleWrapper'; import { HeadwaysSingleWrapper } from '../headways/HeadwaysSingleWrapper'; import { DwellsSingleWrapper } from '../dwells/DwellsSingleWrapper'; +import { HeadwaysHistogramWrapper } from '../headways/charts/HeadwaysHistogramWrapper'; interface SubwayTripGraphsProps { fromStation: Station; @@ -150,6 +151,19 @@ export const SubwayTripGraphs: React.FC = ({ /> + + + + )}