Skip to content

Commit

Permalink
Merge pull request #108 from choongyx/UpdateDG
Browse files Browse the repository at this point in the history
Fix graph window unchecked error
  • Loading branch information
Nanosync authored Oct 24, 2019
2 parents 718f1f2 + 6f58d51 commit a420128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/moneygowhere/ui/GraphWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void loadData(Map<Date, Double> graphData) {
LineChart<String, Number> spendingChart = new LineChart<>(xAxis, yAxis);
spendingChart.setTitle("Current month's spending");

XYChart.Series series = new XYChart.Series();
XYChart.Series<String, Number> series = new XYChart.Series<>();
series.setName("spending");
for (Map.Entry<Date, Double> i : graphData.entrySet()) {
XYChart.Data<String, Number> dataToAdd = new XYChart.Data<>(i.getKey().toString(),
Expand Down

0 comments on commit a420128

Please sign in to comment.