cumulative scrobble graph and dark theme

This commit is contained in:
aj 2019-05-23 09:54:17 +01:00
parent 7503faa70f
commit 0dd9e5dda6
2 changed files with 17 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class ScrobblesViewPaneController {
@FXML
public void initialize() {
}
public void populate(FMObj obj) {
@ -82,8 +82,11 @@ public class ScrobblesViewPaneController {
calendar.addCount(scrobbleDate.getMonth(), scrobbleDate.getYear());
}
int cumulative = 0;
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);

View File

@ -17,10 +17,22 @@
-fx-start-angle: 90;
}
.chart-vertical-grid-lines {
-fx-stroke: #404040;
}
.chart-horizontal-grid-lines {
-fx-stroke: #404040;
}
.chart-bar {
-fx-background-color: #202124;
}
.chart-plot-background {
-fx-background-color: transparent;
}
.chart-pie-label {
-fx-fill: white;
}