1

I'n not really familiar with ms chart and have been googleing throughout the day to find an example of what I need, but was not able to find it.

I would like to be able to plot multiple lines on a chart like this:

enter image description here

(this is done manually, just to make clear what I need).

I can calculate each value the line has per x value per line. I store it in a list which hold the DateAndValue object:

[Serializable]
public struct DateAndValue
{
    public uint DBDate { get; set; }
    public double Value { get; set; }
    public int BarNumber { get; set; }
}

As you can see, it's not really possible to use one list for support lines and one for resistance, because there might be multiple lines of the same sort (i.e. support) in the same period.

What would be a good way of storing (must be update-able) the data and plot it in the chart, without having zero values when there is no data.

I could also make an object that only contains start and end point per line. In that case I would just update the end value if necessary.

Suggestions would be highly appreciated. Kind regards,

Matthijs

4

1 回答 1

1

不久前,我问了一个关于如何创建烛台图的堆栈溢出问题,答案和我的问题应该一起引导你走向正确的方向

这是网址:

烛台-多个 y 值

如何在图表中制作趋势线?我的猜测是你可以用 2 个点为每条线添加一个新系列(也许通过选择 2 个不同的蜡烛),通常你可以用实线、虚线等填充 2 个点之间的“缺失”点。

我希望比我更有经验的人能给你更好的答案!

于 2012-10-28T22:04:58.673 回答