cumulative scrobble graph and dark theme
This commit is contained in:
parent
7503faa70f
commit
0dd9e5dda6
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user