public GoogleChartSeries(GoogleChartType googleChartType, GoogleChartAxisType googleChartAxisType, string color, int?lineWidth, int?pointSize) { Type = googleChartType.SeriesDataDisplayType; GetTargetAxisIndex(googleChartAxisType); Color = color; LineWidth = lineWidth; PointSize = pointSize; }
private void GetTargetAxisIndex(GoogleChartAxisType googleChartAxisType) { switch (googleChartAxisType) { case GoogleChartAxisType.Primary: TargetAxisIndex = null; break; case GoogleChartAxisType.Secondary: TargetAxisIndex = 1; break; default: throw new ArgumentOutOfRangeException(nameof(googleChartAxisType), googleChartAxisType, null); } }
public GoogleChartSeries(GoogleChartType googleChartType, GoogleChartAxisType googleChartAxisType) { Type = googleChartType.SeriesDataDisplayType; GetTargetAxisIndex(googleChartAxisType); LineWidth = 2; }