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:
(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