Skip to content
Snippets Groups Projects
Commit c3d419ae authored by Eilert Tunheim's avatar Eilert Tunheim
Browse files

minor updates to the InputPopUpWindow

parent a1c06e04
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ package com.application.GUI;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.chart.LineChart;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.*;
......@@ -80,9 +81,9 @@ public class InputPopUpWindow {
// Call på getKwh()
try {
//LineChartFunctionality.loadSingleSeries();
LineChartFunctionality.loadMultipleSeries();
//Main.createLineChart();
LineChartFunctionality.loadSingleSeries();
//LineChartFunctionality.loadMultipleSeries();
} catch (Exception ex) {
ex.printStackTrace();
}
......
......@@ -11,8 +11,6 @@ import java.util.Map;
public class LineChartFunctionality {
private static LineChart<String, Number> lineChart;
private static XYChart.Series<String, Number> series;
private static XYChart.Data<String, Number> chartData;
private static CategoryAxis xAxis;
private static NumberAxis yAxis;
......@@ -20,11 +18,11 @@ public class LineChartFunctionality {
public LineChartFunctionality(){
xAxis = new CategoryAxis();
yAxis = new NumberAxis();
series = new XYChart.Series<String, Number>();
chartData = new XYChart.Data<String, Number>();
lineChart = new LineChart<>(xAxis,yAxis);
xAxis.setLabel("Date");
xAxis.setAnimated(false);
yAxis.setLabel("Kwh");
yAxis.setAnimated(false);
lineChart.setTitle("Drying Processes");
}
......@@ -32,10 +30,6 @@ public class LineChartFunctionality {
return lineChart;
}
public static XYChart.Series<String, Number> getSeries() {
return series;
}
public static void updateLineChart(XYChart.Series<String, Number> series){
lineChart.getData().add(series);
}
......
......@@ -104,6 +104,7 @@
#inputButtonStart {
-fx-pref-width: infinity;
-fx-translate-y: 10;
-fx-pref-height: 25;
-fx-font-size: 20;
-fx-font-family: Arial;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment