cumulative scrobble graph and dark theme
This commit is contained in:
parent
7503faa70f
commit
0dd9e5dda6
@ -82,8 +82,11 @@ public class ScrobblesViewPaneController {
|
|||||||
calendar.addCount(scrobbleDate.getMonth(), scrobbleDate.getYear());
|
calendar.addCount(scrobbleDate.getMonth(), scrobbleDate.getYear());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cumulative = 0;
|
||||||
|
|
||||||
for(MonthScrobbles month: calendar.getMonthScrobbles()) {
|
for(MonthScrobbles month: calendar.getMonthScrobbles()) {
|
||||||
series.getData().add(new Data<String, Integer>(month.toString(), month.getCount()));
|
cumulative += month.getCount();
|
||||||
|
series.getData().add(new Data<String, Integer>(month.toString(), cumulative));
|
||||||
}
|
}
|
||||||
|
|
||||||
areaChart.getData().add(series);
|
areaChart.getData().add(series);
|
||||||
|
@ -17,10 +17,22 @@
|
|||||||
-fx-start-angle: 90;
|
-fx-start-angle: 90;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chart-vertical-grid-lines {
|
||||||
|
-fx-stroke: #404040;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chart-horizontal-grid-lines {
|
||||||
|
-fx-stroke: #404040;
|
||||||
|
}
|
||||||
|
|
||||||
.chart-bar {
|
.chart-bar {
|
||||||
-fx-background-color: #202124;
|
-fx-background-color: #202124;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chart-plot-background {
|
||||||
|
-fx-background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.chart-pie-label {
|
.chart-pie-label {
|
||||||
-fx-fill: white;
|
-fx-fill: white;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user