#18 - Clean graphic
This commit is contained in:
parent
01ecc09636
commit
660dcb9fea
@ -24,12 +24,6 @@ public class StatisticController {
|
|||||||
@GetMapping("/statistic")
|
@GetMapping("/statistic")
|
||||||
public String indexBranch(
|
public String indexBranch(
|
||||||
Model model) {
|
Model model) {
|
||||||
String[] continents = {
|
|
||||||
"Africa", "Antarctica", "Asia", "Australia",
|
|
||||||
"Europe", "North America", "Sourth America"
|
|
||||||
};
|
|
||||||
|
|
||||||
model.addAttribute("continents", continents);
|
|
||||||
List<Object[]> authorCommits = commitRepository.getCommitAuthorStatistic().stream()
|
List<Object[]> authorCommits = commitRepository.getCommitAuthorStatistic().stream()
|
||||||
.map(stat -> new Object[]{stat.getAuthor(), stat.getCountCommit()})
|
.map(stat -> new Object[]{stat.getAuthor(), stat.getCountCommit()})
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
zoomType: 'xy'
|
zoomType: 'xy'
|
||||||
};
|
};
|
||||||
var title = {
|
var title = {
|
||||||
text: 'Height Versus Weight of Individuals'
|
text: 'Количество коммитов во времени'
|
||||||
};
|
};
|
||||||
var xAxis = {
|
var xAxis = {
|
||||||
categories: [],
|
categories: [],
|
||||||
@ -103,13 +103,13 @@
|
|||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
headerFormat: '<b>{series.name}</b><br>',
|
headerFormat: '<b>{series.name}</b><br>',
|
||||||
pointFormat: '{point.x}, {point.y} commits'
|
pointFormat: '{point.y} commits'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var series = [
|
var series = [
|
||||||
{
|
{
|
||||||
name: 'Male',
|
name: 'Коммиты',
|
||||||
color: 'rgba(119,152,191,0.5)',
|
color: 'rgba(119,152,191,0.5)',
|
||||||
data: [[${commitTimeData}]]
|
data: [[${commitTimeData}]]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user