public void ConstructPlot()
        {
            // Set Grid size if defined
            if (GridWidth != 0 && GridHeight != 0)
            {
                ViewOxyPlotChartLayoutRoot.SetCurrentValue(WidthProperty, GridWidth);
                ViewOxyPlotChartLayoutRoot.SetCurrentValue(HeightProperty, GridHeight);
            }
            // Show Help button if enabled
            HelpButton.SetCurrentValue(VisibilityProperty, (ShowHelpButton ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden));

            if (OxyPlotView.Axes.Count == 0 && !constructAxes())
            {
                return;
            }

            //System.Diagnostics.Debug.WriteLine($"{Name}: Axes updated.");

            AbsoluteMinimumX = 0;
            AbsoluteMaximumX = 0;
            AbsoluteMinimumY = 0;
            AbsoluteMaximumY = 0;

            /* Currently not implemented
             * double AbsoluteMinimumZ = 0;
             * double AbsoluteMaximumZ = 0;
             */

            // Get the common style properties for each line series that will be added to the plot
            Style _series_style = null;

            _series_style = LineSeriesStyle;
            if (_series_style == null)
            {
                _series_style = TryFindResource("OxyPlotDefaultLineSeriesStyle") as Style;
            }

            OxyPlotView.Series.Clear();
            if (LineSeries != null)
            {
                // Data bound to the LineSeries property, we have a single line series
                contructSingleLineSeries(_series_style);
                //System.Diagnostics.Debug.WriteLine($"{Name}: Line series updated.");
            }
            else if (ChartData != null)
            {
                // Data bound to the Chartdata property, we have potentially many line series.
                contructMultipleLineSeries(_series_style);
                //System.Diagnostics.Debug.WriteLine($"{Name}: ChartData updated.");
            }
            if (OxyPlotView.Series.Count > 0)
            {
                setAxesLimits();
            }
        }