My properties are defined like this:
#region Properties
[Browsable(false)]
[XmlIgnore()]
public Series<double> PendingCount
{
get { return Values[1]; }
}
[Browsable(false)]
[XmlIgnore]
public Series<double> TrendMode
{
get { return Values[0]; }
}
#endregion
But when I try to set PendingCount[0] I get an error message in runtime: Error on calling OnBarUpdate, Index was outside the bounds of the array
Note that in OnStateChange if State == State.SetDefaults I call only one AddPlot function:
AddPlot(Brushes.DarkCyan, "TrendMode");
since I only want to see TrendMode plotted, not PendingCount. But for some reason, PendingCount doesn't seem to get allocated.
How do I fix this?

Comment