private void PlottingUC_Load(object sender, System.EventArgs e)
        {
            if (DesignMode || Plotter == null)
            {
                return;
            }

            chartControl1.Titles.Add(new ChartTitle {
                Text = Plotter.Title
            });
            chartControl1.Legend.UseCheckBoxes = true;
            foreach (var(seriesName, viewType) in Plotter.GetChartSeries())
            {
                PlottingGraphData data = new PlottingGraphData((float)nudRefreshInterval.Value, (int)nudWindow.Value);
                Manager.AddGraphData(seriesName, data);
                Series series = new Series(seriesName, (ViewType)viewType)
                {
                    CheckableInLegend  = true,
                    CheckedInLegend    = true,
                    DataSource         = data.ViewportData,
                    DataSourceSorted   = true,
                    ArgumentDataMember = nameof(AnalogyPlottingPointData.DateTime)
                };
                series.ValueDataMembers.AddRange(nameof(AnalogyPlottingPointData.Value));
                chartControl1.Series.Add(series);
            }
            chartControl1.Legend.Visibility = DefaultBoolean.True;

            XYDiagram diagram = (XYDiagram)chartControl1.Diagram;

            diagram.AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous;
            diagram.AxisX.Label.ResolveOverlappingOptions.AllowRotate  = false;
            diagram.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
            // diagram.AxisX.VisualRange.EndSideMargin = 200;
            diagram.DependentAxesYRange = DefaultBoolean.True;
            diagram.AxisY.WholeRange.AlwaysShowZeroLevel = false;
            diagram.EnableAxisXZooming                  = true;
            diagram.EnableAxisYZooming                  = true;
            diagram.ZoomingOptions.UseKeyboard          = true;
            diagram.ZoomingOptions.UseKeyboardWithMouse = true;
            diagram.ZoomingOptions.UseMouseWheel        = true;
            diagram.ZoomingOptions.UseTouchDevice       = true;
            diagram.EnableAxisXScrolling                = true;
            diagram.EnableAxisYScrolling                = true;
            diagram.ScrollingOptions.UseKeyboard        = true;
            diagram.ScrollingOptions.UseMouse           = true;
            diagram.ScrollingOptions.UseScrollBars      = true;
            diagram.ScrollingOptions.UseTouchDevice     = true;

            SetChartType();
        }