Javafx-snapshot of scene doesnt show values and series
问题 I made a really short app, which uses javafx to generate a chart. App shows the right values(chart) but when I do snapshot, image shows just an axis and labels, but not the series and values. stage.setTitle("Line Chart Sample"); final DateAxis xAxis = new DateAxis(); final NumberAxis yAxis = new NumberAxis(); xAxis.setLabel("Number of Month"); yAxis.setLabel("Count"); final LineChart<Date, Number> lineChart = new LineChart<>(xAxis,yAxis); Scene scene = new Scene(lineChart,1000,700); lineChart