Skip to content

Commit

Permalink
Merge branch 'profile_page_1' of https://github.com/VSciFlight/open-b…
Browse files Browse the repository at this point in the history
…us-map-search into profile_page_1

* 'profile_page_1' of https://github.com/VSciFlight/open-bus-map-search:
  Replace sort by date and remove reversed (#237)
  • Loading branch information
VSciFlight committed Nov 21, 2023
2 parents 20056fc + fd90894 commit 1dbd72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ArrivalByTimeChart({
<ResponsiveContainer width="100%" height={300}>
<LineChart
data={group
.sort((a, b) => (a.gtfs_route_date > b.gtfs_route_date ? 1 : -1))
.sort((a, b) => (a.gtfs_route_date < b.gtfs_route_date ? 1 : -1))
.sort((a, b) => (a.gtfs_route_hour > b.gtfs_route_hour ? 1 : -1))}
margin={{
top: 5,
Expand All @@ -62,7 +62,7 @@ export default function ArrivalByTimeChart({
bottom: 5,
}}>
<CartesianGrid strokeDasharray="3 3" />
<XAxis dataKey="gtfs_route_date" reversed={true} />
<XAxis dataKey="gtfs_route_date" />
<YAxis />
<Tooltip
content={({ payload }) =>
Expand Down

0 comments on commit 1dbd72a

Please sign in to comment.