Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 484
learner Avatar asked Dec 11 '22 14:12

learner


2 Answers

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.

enter image description here

like image 99
jewelsea Avatar answered Dec 14 '22 04:12

jewelsea


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

enter image description here

like image 38
Nicolas56 Avatar answered Dec 14 '22 04:12

Nicolas56