I have JavaFX LineChart and some data with XYChart.Series objects as
XYChart.Series<String, Number> series = new XYChart.Series<String, Number>();
series.getData().add(new XYChart.Data<>(key, percent));
lineChart.getData().add(series);
I am trying to style the LineChart lines with JavaFX CSS (preferably inline) with not much luck. I have tried numerous things but thought
series.getNode().setStyle("-fx-stroke: blue;");
should work and it doesn't.
In the JavaFX CSS Reference LineChart section it gives this information,
"chart-series-line series < i > default-color < j >" Where < i > is the index of the series and < j > is the series’ color index
What is the index of a series and the index of a color? I have searched StackOverflow, this question does not seem to have been answered, at least not with any working solutions.