gpt4 book ai didi

c# - Oxyplot:蜡烛重叠每根蜡烛

转载 作者:行者123 更新时间:2023-11-30 18:22:56 25 4
gpt4 key购买 nike

当缩小图表时,蜡烛开始与另一根蜡烛重叠。

例如

enter image description here

enter image description here

enter image description here

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com