Real Time Candle stick chart using javafx (and no jfreechart )

柔情痞子 提交于 2020-01-12 09:36:49

问题


I want to make a candlestick chart which reads stream of data and then plot it (so it will be plotting either as data comes or after certain period it will update the previous plot).

I do not want to use any third party software as Jfree chart want it to be build from javafx directly.

Any help will be highly appreciated.

Thank you

Edit :

Can anyone tell me how stage.show() works like which class which method it involke.


回答1:


The Ensemble application includes a candlestick chart implementation for JavaFX.

Download the sample Ensemble (Java 7) source or the Ensemble (Java 8) source from Oracle.

Ensemble is Oracle BSD licensed, so you are free to use it as you wish.




回答2:


In case it may help, I have extracted from Ensemble source code a minimal code for AdvCandleStickChart: https://gist.github.com/Nicolas56/e02b29431b820d7c8c218c804f0269b0 There are only two files: .java and .css, which form together a stand-alone application




回答3:


I have tried the ensemble example myself and customized. It does not perform well over 1000 bars. At least when your moving the 1000 bars and figure that out. Which is a huge shock since I wrote the same thing in swing a while ago with stellar performance.

I would recommend rolling your own in fx.



来源:https://stackoverflow.com/questions/16850099/real-time-candle-stick-chart-using-javafx-and-no-jfreechart

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