public ChartDataSeries(XElement node) : base(node) { m_data = new List <Pt>(); m_range_x = RangeF.Invalid; Cache = new ChartGfxCache(CreatePiece); Format = node.Element(nameof(Format)).As <EFormat>(); Options = node.Element(nameof(Options)).As <OptionsData>(); }
public ChartDataSeries(Guid id, string name, EFormat format, OptionsData?options = null, int?capacity = null) : base(id, m4x4.Identity, name) { m_data = new List <Pt>(capacity ?? 100); m_range_x = RangeF.Invalid; Cache = new ChartGfxCache(CreatePiece); Format = format; Options = options ?? new OptionsData(); }