public static bool IsVisible(ChartSeries series)
 {
     return(series.Visibility == SeriesVisibility.Plot || series.Visibility == SeriesVisibility.Visible);
 }