17 using System.Collections.Generic;
20 using System.Runtime.Serialization;
21 using Newtonsoft.Json;
22 using Newtonsoft.Json.Converters;
65 : this(name, type, index,
"$")
89 : this(name, type, unit,
Color.Empty)
114 : base(name, type, 0, unit)
147 throw new ArgumentException(
"Series.AddPoint requires a ChartPoint object");
150 base.AddPoint(point);
158 public override void AddPoint(DateTime time, List<decimal> values)
160 if (values.Count > 1)
162 throw new ArgumentException(
"Series.AddPoint requires a single value");
165 AddPoint(time, values.Count > 0 ? values[0] : 0);
174 if (
Values.Count <= 0)
return null;
181 sum += point.
y.Value;
216 [JsonConverter(typeof(StringEnumConverter))]
220 [EnumMember(Value =
"none")]
223 [EnumMember(Value =
"circle")]
226 [EnumMember(Value =
"square")]
229 [EnumMember(Value =
"diamond")]
232 [EnumMember(Value =
"triangle")]
235 [EnumMember(Value =
"triangle-down")]