0
Under review

Candle overlap each candle

lex2 3 years ago • updated by Oystein Bjorke 3 years ago 2
When reducing charts the candle begins to overlap another candle.For example

enter image description here

enter image description here

enter image description here

Axises


DateTimeAxis timeSPanAxis1 = new DateTimeAxis() { Position = AxisPosition.Bottom, MinorIntervalType = DateTimeIntervalType.Minutes, MajorGridlineStyle = LineStyle.Dot, MinorGridlineStyle = LineStyle.Dot, MajorGridlineColor = OxyColor.FromRgb(44, 44, 44), TicklineColor = OxyColor.FromRgb(82, 82, 82), }; PlotModel.Axes.Add(timeSPanAxis1); LinearAxis linearAxis1 = new LinearAxis() { Position = AxisPosition.Right, MajorGridlineStyle = LineStyle.Dot, MinorGridlineStyle = LineStyle.Dot, MajorGridlineColor = OxyColor.FromRgb(44, 44, 44), TicklineColor = OxyColor.FromRgb(82, 82, 82) }; PlotModel.Axes.Add(linearAxis1);
and candle stick series

 CandleStickSeries candle = new CandleStickSeries()
{
Color = OxyColors.Black,
IncreasingColor = OxyColor.FromRgb(0,197,49),
DecreasingColor = OxyColor.FromRgb(255,95,95),
DataFieldX = "Time",
DataFieldHigh = "H",
DataFieldLow = "L",
DataFieldClose = "C",
DataFieldOpen = "O",
TrackerFormatString = "Date: {2}\nOpen: {5:0.00000}\nHigh: {3:0.00000}\nLow: {4:0.00000}\nClose: {6:0.00000}",
};
Why is this happening? How to fix it?