示例#1
0
 public GoogleChartSeries(GoogleChartType googleChartType, GoogleChartAxisType googleChartAxisType, string color, int?lineWidth, int?pointSize)
 {
     Type = googleChartType.SeriesDataDisplayType;
     GetTargetAxisIndex(googleChartAxisType);
     Color     = color;
     LineWidth = lineWidth;
     PointSize = pointSize;
 }
示例#2
0
        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);
            }
        }
示例#3
0
 public GoogleChartSeries(GoogleChartType googleChartType, GoogleChartAxisType googleChartAxisType)
 {
     Type = googleChartType.SeriesDataDisplayType;
     GetTargetAxisIndex(googleChartAxisType);
     LineWidth = 2;
 }