【发布时间】:2017-11-16 02:37:49
【问题描述】:
这是我的控制器 java 类,我在其中动态绘制具有多个系列和多个值的折线图 X 类别轴,Y 是数字轴,我想在悬停在点上时显示值。我有多个系列和多个值,我该怎么做呢
Stage stage = new Stage();
stage.setTitle("Performance Analysis");
final CategoryAxis xAxis = new CategoryAxis();
final NumberAxis yAxis = new NumberAxis();
xAxis.setLabel("Values");
//yAxis.setLabel("Engines");
LineChart<String, Number> lineChart = new LineChart<String,Number>(xAxis,yAxis);
Scene scene = new Scene(lineChart,800,600);
lineChart.setTitle("Performance Analysis");
lineChart.setCursor(Cursor.CROSSHAIR);
ParameterSelectionController psc = new ParameterSelectionController();
performance performvalues = new performance(lineChart, refined, collection, al4); //this is another class which in parameter
performvalues.generateChart();
stage.setScene(scene);
stage.show();
【问题讨论】:
标签: java css javafx javafx-2 javafx-8