当减少图表时,蜡烛开始与另一蜡烛重叠。

例如

c# - Oxyplot:蜡烛重叠每个蜡烛-LMLPHP

c# - Oxyplot:蜡烛重叠每个蜡烛-LMLPHP

c# - Oxyplot:蜡烛重叠每个蜡烛-LMLPHP

轴数

DateTimeAxis timeSPanAxis1 = new DateTimeAxis()
            {
                Position = AxisPosition.Bottom,
                MinorIntervalType = DateTimeIntervalType.Auto,
                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);


和烛台系列

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}",

            };


为什么会这样呢?如何解决?

最佳答案

我刚刚解决了有关十字星蜡烛的问题。

可以在以下位置找到拉取请求
GitHub

关于c# - Oxyplot:蜡烛重叠每个蜡烛,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33130300/

10-13 07:51