Skip to content

Commit e9f0800

Browse files
committed
Reverse timeseries
1 parent abb0cb2 commit e9f0800

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Domain/Report/Tabulator/VariantTabulator.php

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function historicalChart(array $dataSet)
5858
$chart = [];
5959
$labels = [];
6060
foreach ($grouped as $variantName => $data) {
61+
$data = array_reverse($data);
6162
if (empty($labels)) {
6263
$labels = array_values(array_map(function (array $data) {
6364
return $data['suite-date'];
@@ -75,6 +76,7 @@ public function historicalChart(array $dataSet)
7576
$chart[] = $series;
7677
}
7778

79+
7880
return [
7981
'dataSets' => $chart,
8082
'labels' => $labels

0 commit comments

Comments
 (0)