JavaFx How To Change Line Chart Color Default

Опубликовано: 17 Октябрь 2024
на канале: Cyber Developer
7,348
36

#linechart #Default_Linechart #Change_Color

how do I change the color of a standard line chart in java fx? how to make a cool line chart? or how to make line chart UI in java fx? that is a question that often appears when I create applications that have populations or have to display populations. so I took the time to look for it in forums with the theme javafx linechart and finally I found one of the articles that clearly discussed the line chart in the java fx and it came from the Oracle itself.

Thanks For Watching This video, Don't Forget to Like & Subscribe and share this video.


Code Css :
===============

.chart-series-line{

}

.default-color0.chart-series-line{-fx-stroke: #29B6F6;}
.default-color1.chart-series-line{-fx-stroke: #5E35B1;}
.default-color2.chart-series-line{-fx-stroke: #EC407A;}


.default-color0.chart-line-symbol{-fx-background-color: #29B6F6, #ffffff;

}
.default-color1.chart-line-symbol{-fx-background-color: #5E35B1, #ffffff;

}
.default-color2.chart-line-symbol{-fx-background-color: #EC407A, #ffffff;

}
===========================================

Contact US
===========

Email : [email protected] or [email protected]
Facebook : Faisal
Instagram : @veizall
Fanspage :   / cyberdeveloperui