diff --git a/src/main/java/sarsoo/fmframework/fx/controller/ScrobbleChartPaneController.java b/src/main/java/sarsoo/fmframework/fx/controller/ScrobbleChartPaneController.java index ac8ec02..6e40fbe 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/ScrobbleChartPaneController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/ScrobbleChartPaneController.java @@ -11,7 +11,7 @@ import javafx.fxml.FXML; import sarsoo.fmframework.fm.FmUserNetwork; import sarsoo.fmframework.music.Album; import sarsoo.fmframework.net.Key; -import javafx.scene.chart.LineChart; +import javafx.scene.chart.BarChart; import javafx.scene.chart.XYChart; import javafx.scene.control.*; import javafx.scene.layout.BorderPane; @@ -28,7 +28,7 @@ public class ScrobbleChartPaneController { private ChoiceBox dropDownTimeRange; @FXML - private LineChart lineChartScrobbles; + private BarChart barChartScrobbles; @FXML private BorderPane chartBorderPane; @@ -95,8 +95,8 @@ public class ScrobbleChartPaneController { @Override public void run() { try { - lineChartScrobbles.getData().clear(); - lineChartScrobbles.getData().add(series); + barChartScrobbles.getData().clear(); + barChartScrobbles.getData().add(series); } finally { latch.countDown(); diff --git a/src/main/resources/sarsoo/fmframework/fx/ui/ScrobbleChartPane.fxml b/src/main/resources/sarsoo/fmframework/fx/ui/ScrobbleChartPane.fxml index 2d27d64..8879753 100644 --- a/src/main/resources/sarsoo/fmframework/fx/ui/ScrobbleChartPane.fxml +++ b/src/main/resources/sarsoo/fmframework/fx/ui/ScrobbleChartPane.fxml @@ -20,14 +20,14 @@
- + - +
diff --git a/src/main/resources/sarsoo/fmframework/fx/ui/main.fxml b/src/main/resources/sarsoo/fmframework/fx/ui/main.fxml index 150614c..da40ad5 100644 --- a/src/main/resources/sarsoo/fmframework/fx/ui/main.fxml +++ b/src/main/resources/sarsoo/fmframework/fx/ui/main.fxml @@ -18,6 +18,7 @@ + @@ -33,7 +34,6 @@ -