简体   繁体   中英

How to change the axis color of javafx chart?

I am new in javafx. I am using javafx charts (line chart) and want to change the axis color, which is indicated by red circle.

在此处输入图片说明

Can someone help me? Thanks

最后,我找到了解决方案。

.axis:left {-fx-border-color: transparent #0f0f0f transparent transparent;} .axis:bottom{-fx-border-color: #0f0f0f transparent transparent;}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM