Change chart colors for different values [duplicate]
问题 This question already has an answer here : How to change color of a single bar java fx (1 answer) Closed 5 years ago . I want to create temperature chart where I can monitor in real time temperature. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.StackedAreaChart; import javafx.scene.chart.XYChart; import javafx.stage.Stage; public class MainApp extends Application { final NumberAxis xAxis = new NumberAxis(1,