Changed chart line colours.
This commit is contained in:
parent
ba36ddd5cb
commit
282942a893
@ -35,11 +35,11 @@ public class AverageStatsChartJs {
|
||||
teamwork.add(averageStats.getTeamwork());
|
||||
knowledge.add(averageStats.getKnowledge());
|
||||
}
|
||||
datasets.add(new Dataset("Monitoring", "", monitoring));
|
||||
datasets.add(new Dataset("Control", "", control));
|
||||
datasets.add(new Dataset("Conservatism", "", conservatism));
|
||||
datasets.add(new Dataset("Teamwork", "", teamwork));
|
||||
datasets.add(new Dataset("Knowledge", "", knowledge));
|
||||
datasets.add(new Dataset("Monitoring", "#F90", monitoring));
|
||||
datasets.add(new Dataset("Control", "#3F0", control));
|
||||
datasets.add(new Dataset("Conservatism", "#33F", conservatism));
|
||||
datasets.add(new Dataset("Teamwork", "#FF0", teamwork));
|
||||
datasets.add(new Dataset("Knowledge", "#000", knowledge));
|
||||
}
|
||||
|
||||
@AllArgsConstructor
|
||||
@ -50,7 +50,7 @@ public class AverageStatsChartJs {
|
||||
|
||||
@NonNull
|
||||
@JsonProperty
|
||||
private final String borderColor;
|
||||
private final String backgroundColor;
|
||||
|
||||
@NonNull
|
||||
@JsonProperty
|
||||
|
@ -67,6 +67,7 @@ public class ObservationResource {
|
||||
|
||||
@Path("/average/all/chartjs")
|
||||
@GET
|
||||
@UnitOfWork
|
||||
public AverageStatsChartJs averageStatsChartJs() {
|
||||
return new AverageStatsChartJs(averageObservationScores());
|
||||
}
|
||||
@ -81,6 +82,7 @@ public class ObservationResource {
|
||||
|
||||
@Path("/average/{id}/chartjs")
|
||||
@GET
|
||||
@UnitOfWork
|
||||
public AverageStatsChartJs averageObservationScoresForSiteChartJs(@PathParam("id") long siteId) {
|
||||
return new AverageStatsChartJs(averageObservationScoresForSite(siteId));
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ export default {
|
||||
methods: {
|
||||
getAllTimeAverage: function() {
|
||||
Vue.axios
|
||||
.get("/api/average/all/chartjs")
|
||||
.get("/api/observation/average/all/chartjs")
|
||||
.then(response => {
|
||||
this.chartData = response.data;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user