java - setting more than eight colors for data series in JavaFX ScatterChart -


i'm trying set colors of eleven data series in scatterchart. unfortunately javafx repeats colors , symbols every 8 series due nextclearbit set mudulo 8 design. there solution overcome setting colors manually each data series in css like:

.default-color0.chart-series-line { -fx-stroke: #e9967a; } .default-color1.chart-series-line { -fx-stroke: #f0e68c; } .default-color2.chart-series-line { -fx-stroke: #dda0dd; } 

...and on.

this works linecharts. tryed similar approach scatterchart, but...

.default-color0.chart-symbol { -fx-stroke: #e9967a; } .default-color1.chart-symbol { -fx-stroke: #f0e68c; } .default-color2.chart-symbol { -fx-stroke: #dda0dd; } 

...and on works until...

.default-color8.chart-symbol { -fx-stroke: #e9a0dd; } 

at point java ignores css , jumps formatting of first data series following nextclearbit rule. know how fix this?

javafx scatter chart repeats color combination after 8th series. there no styleclass .default-color8 in javafx style css file modena.css.

if want color series, should depend on styleclass represents series , not color itself.

try using series0, .series1, , on, style class instead of .default-color0, .default-color1 ...


Comments