Setting Alternative Colors for the Series in a JavaFX Line Chart

By default, the Caspian style sheet defines eight colors of line that correspond to the first eight series of data. When the number of data series added to the line chart exceeds eight, the color of the extra lines is defined in the .chart-series-line CSS class.

Use the .chart-series-line class and .default-color i.chart-series-line classes to change the style of lines.

If you find this tutorial useful, please hit the like button to let us know. You can subscribe to my YouTube channel to learn more.
 
 

1 thought on “Setting Alternative Colors for the Series in a JavaFX Line Chart”

  1. El archivo se carga bien porque todo el demas CSS funciona bien pero eso no, y si lo quiero hacer desde java siempre me arroja el getNode como null incluso si trato de obtenerlo despues de que se cargo y redenderizo todo

    Reply

Leave a Comment