public DataSeries(DataSeriesParameters <Tx, Ty> seriesParameters) { if (seriesParameters != null) { this.type = seriesParameters.ChartType; this.legendText = seriesParameters.LegendText; this.showInLegend = seriesParameters.ShowInLegend; this.points = seriesParameters.Points.ToArray(); this.xValueType = seriesParameters.XValueType; this.toolTipContent = seriesParameters.ToolTipContent; } }
public DataSeriesParameters(ChartType chartType, bool showInLegend, string legendText, XValueType xValueType, IList <Point <Tx, Ty> > points, string toolTipContent) { this.ChartType = chartType; this.ShowInLegend = showInLegend; this.LegendText = legendText; this.XValueType = xValueType; this.Points = points; this.ToolTipContent = toolTipContent; }