Skip to content

Commit

Permalink
clean up and prepare the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed May 17, 2024
1 parent 1c57a45 commit 48b6ed9
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/components/RoutePerformanceLineChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
data = {
labels: Object.keys(routeMetricsResponse),
datasets: [
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.max80 ? Number(metrics.max80) / 1000000 : 0),
label: 'max80',
tension: 0.1,
},
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.min80 ? Number(metrics.min80) / 1000000 : 0),
label: 'min80',
tension: 0.1,
},
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.mean80 ? Number(metrics.mean80) / 1000000 : 0),
label: 'mean80',
Expand All @@ -26,6 +36,16 @@
tension: 0.1,
stdev: Object.values(routeMetricsResponse).map(metrics => metrics.stdv80 ? Number(metrics.stdv80) / 1000000 : 0),
},
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.max100 ? Number(metrics.max100) / 1000000 : 0),
label: 'max100',
tension: 0.1,
},
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.min100 ? Number(metrics.min100) / 1000000 : 0),
label: 'min100',
tension: 0.1,
},
{
data: Object.values(routeMetricsResponse).map(metrics => metrics.mean100 ? Number(metrics.mean100) / 1000000 : 0),
label: 'mean100',
Expand All @@ -48,7 +68,6 @@
scales: {
y: {
beginAtZero: true,
max: 7,
}
}
}}"/>
Expand Down

0 comments on commit 48b6ed9

Please sign in to comment.