fair-acc / chart-fx

A scientific charting library focused on performance optimised real-time data visualisation at 25 Hz update rates for data sets with a few 10 thousand up to 5 million data points.
GNU Lesser General Public License v3.0
488 stars 90 forks source link

(1) real time candlestick Chart with lines and points together (2) show at least two candlesticks together #643

Closed yezhengli-Mr9 closed 7 months ago

yezhengli-Mr9 commented 7 months ago

Discussed in https://github.com/fair-acc/chart-fx/discussions/641

Originally posted by **yezhengli-Mr9** November 20, 2023 I can provide my sample source code if necessary in the near future. (1) Try to draw real-time candlestick Chart with lines and points together. By lines and points, I mean for example, combination of vertical and horizontal lines to show support point and alert trigger point. (1a) no need to show arrow; lines are good. (2a) even rectangles instead of combination of horizontal and vertical lines are OK. (2) better show at least two candlesticks together -- so far any way is fine: for example, (2a) side by side (2b) put two candlesticks on one chart. DailyMarketStream 2023-11-20 07-32-27 Try to use `addPaintAfterEp(...)` in following potentially helpful examples while following samples provide blank or non-instructive output charts? https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/financial/FinancialPositionSample.java#L45 https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/financial/FinancialRealtimeFootprintSample.java#L58 ![image](https://github.com/fair-acc/chart-fx/assets/16505983/465d254f-1966-4858-9da7-15d6a011e96b) ![image](https://github.com/fair-acc/chart-fx/assets/16505983/68672159-2e67-4f54-8bef-f91e3142f9d0) On the other hand, `addPaintAfterEp(...)` in following can provide `Color.MAGENTA` as designed https://github.com/fair-acc/chart-fx/blob/ed86318c5a1bde23d285633a94860648aee5fb32/chartfx-samples/src/main/java/io/fair_acc/sample/financial/FinancialRealtimeCandlestickSample.java#L117 ![image](https://github.com/fair-acc/chart-fx/assets/16505983/e757c16e-feb7-4327-972d-9d3b2be57a76)
wirew0rm commented 7 months ago

No need to duplicate this into the issues