You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I want to render the candlestick chart and facing some rendering issues. I have 1 minute OHLC data, and want to render the entire trading day (~375 candles). When seeing the entire trading day, I am seeing issues with candle rendering as the candle body is sometimes visible and sometimes not. Sometimes it also renders wicks like they are candle body and render candle body like wicks.
The following is the video showing the issue
Screencast.from.2025-11-07.23-21-04.mp4
let box_elems = stock_data.iter().enumerate().map(|(i, candle)| {let(quartile1, quartile3, color) = if candle.open > candle.close{(candle.close, candle.open,Color32::GREEN)}else{(candle.open, candle.close,Color32::RED)};let median = (quartile1 + quartile3) / 2.0;BoxElem::new((i *2)asf64,BoxSpread::new(candle.low, quartile1, median, quartile3, candle.high),).whisker_width(1.0).fill(color.linear_multiply(0.7)).stroke(Stroke::new(1.0, color))}).collect::<Vec<_>>();
I am using Box Plot of egui_plot here. I am new to egui and egui_plot, so most probably my BoxElem configs are incorrect IMO, please help me out here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I want to render the candlestick chart and facing some rendering issues. I have 1 minute OHLC data, and want to render the entire trading day (~375 candles). When seeing the entire trading day, I am seeing issues with candle rendering as the candle body is sometimes visible and sometimes not. Sometimes it also renders wicks like they are candle body and render candle body like wicks.
The following is the video showing the issue
Screencast.from.2025-11-07.23-21-04.mp4
I am using Box Plot of egui_plot here. I am new to egui and egui_plot, so most probably my BoxElem configs are incorrect IMO, please help me out here.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions