XChart
XChart copied to clipboard
While Plotting OHLC chart it display doji as vertical line, ideally it should be a cross
The below code assumes https://github.com/knowm/XChart/blob/69db855f972483edd8d4532ddcf8d41b834d38f7/xchart/src/main/java/org/knowm/xchart/internal/chartpart/PlotContent_OHLC.java#L268-L269
Please review this code, I think even if height is zero of the rectangle it should display a line, which means somehow it has both width and height as 0 which is causing it to display vertical line instead of a cross when open price is equal to close price.