Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 9e41364

Browse files
committed
Added sort data in graphs.
1 parent 654b9cf commit 9e41364

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/graphs.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function drawChart() {
7070

7171
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
7272

73+
data.sort([{column: 1, desc: true}]);
7374
chart.draw(data, options);
7475
}
7576
</script>
@@ -90,11 +91,12 @@ function drawChart() {
9091
]);
9192

9293
var options = {
93-
title: 'Acces to service'
94+
title: 'Access to services'
9495
};
9596

9697
var chart = new google.visualization.PieChart(document.getElementById('piechart2'));
9798

99+
data.sort([{column: 1, desc: true}]);
98100
chart.draw(data, options);
99101
}
100102
</script>

0 commit comments

Comments
 (0)