#18 - Clean graphic

merge-requests/14/head
Anton Romanov 3 years ago
parent 01ecc09636
commit 660dcb9fea

@ -24,12 +24,6 @@ public class StatisticController {
@GetMapping("/statistic")
public String indexBranch(
Model model) {
String[] continents = {
"Africa", "Antarctica", "Asia", "Australia",
"Europe", "North America", "Sourth America"
};
model.addAttribute("continents", continents);
List<Object[]> authorCommits = commitRepository.getCommitAuthorStatistic().stream()
.map(stat -> new Object[]{stat.getAuthor(), stat.getCountCommit()})
.collect(Collectors.toList());

@ -66,7 +66,7 @@
zoomType: 'xy'
};
var title = {
text: 'Height Versus Weight of Individuals'
text: 'Количество коммитов во времени'
};
var xAxis = {
categories: [],
@ -103,13 +103,13 @@
},
tooltip: {
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.x}, {point.y} commits'
pointFormat: '{point.y} commits'
}
}
};
var series = [
{
name: 'Male',
name: 'Коммиты',
color: 'rgba(119,152,191,0.5)',
data: [[${commitTimeData}]]
}

Loading…
Cancel
Save