JavaFx LineChart interrupt serie

戏子无情 提交于 2019-12-13 12:47:00

问题


My software log some devices parameters and if the device is turned off i want to "interrupt" the series (i think i'll add a special value on the data to highlight a device off) and draw new points only when the device is turned on.

I'm using JavaFx LineChart (i don't want to change library)

Sorry for my very no talent using paint!


回答1:


You should treat each line before and after the break as a new series in the chart. You can keep the colors the same by assigning them to a custom css style class, and defining the class in your application's css file.



来源:https://stackoverflow.com/questions/46430961/javafx-linechart-interrupt-serie

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!