#18 - Clean graphic

This commit is contained in:
Anton Romanov 2021-04-07 15:23:17 +04:00
parent 01ecc09636
commit 660dcb9fea
2 changed files with 3 additions and 9 deletions

View File

@ -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());

View File

@ -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}]]
}