XYZ Scatter Error Bar Example for WPF

Nevron NOV Chart for WPF ships with hundreds of examples with full source code, as part of the Nevron Open Vision Suite. All WPF Chart examples are also available as a stand-alone Visual Studio solution in C# and VB.NET, which you can download from the links below.

XYZ Scatter Error Bar Example for WPF Description

This example showcases a XYZ Error Bar chart, which represents uncertainty in the X, Y, and Z values. Use the controls to adjust various properties of the error bar series, such as whisker size, visibility of upper and lower errors, and more.


XYZError Bar Example

C# XYZ Scatter Error Bar Example Code for Nevron Chart for WPF
Language: C#

using Nevron.Nov;
using Nevron.Nov.Chart;
using Nevron.Nov.Chart.Tools;
using Nevron.Nov.Dom;
using Nevron.Nov.Graphics;
using Nevron.Nov.Layout;
using Nevron.Nov.UI;
using Nevron.Nov.Windows.Forms;
using System;
using System.Windows.Forms;

namespace NovWinFormsProject
{
	public partial class Form1 : Form
	{
		#region Constructors

		public Form1()
		{
			InitializeComponent();

			// Set form title
			Text = "NOV WinForms - NXYZErrorBarExample";

			// Create the NOV example and its controls
			NWidget exampleContent = CreateExampleContent();
			NWidget exampleControls = CreateExampleControls();
			if (exampleControls != null)
			{
				exampleControls.PreferredWidth = 300;
			}

			// Place the example and its controls in a pair box
			NPairBox pairBox = new NPairBox(exampleContent, exampleControls);
			pairBox.FillMode = ENStackFillMode.First;
			pairBox.FitMode = ENStackFitMode.First;
			pairBox.Margins = new NMargins(NDesign.HorizontalSpacing, NDesign.VerticalSpacing);

			// Host the example in the form
			NNovWidgetHost host = new NNovWidgetHost(pairBox);
			host.Dock = DockStyle.Fill;
			Controls.Add(host);
		}

		#endregion

		#region Example

		public NWidget CreateExampleContent()
		{
			NChartViewWithCommandBars chartViewWithCommandBars = new NChartViewWithCommandBars();
			NChartView chartView = chartViewWithCommandBars.View;
			chartView.Surface.CreatePredefinedChart(ENPredefinedChartType.Cartesian);

			// configure title
			chartView.Surface.Titles[0].Text = "XYZ Scatter Error Bar";

			// configure chart
			NCartesianChart chart = (NCartesianChart)chartView.Surface.Charts[0];

            chart.Enable3D = true;
            chart.Projection.SetPredefinedProjection(ENPredefinedProjection.PerspectiveTilted);
            chart.LightModel.SetPredefinedLightModel(ENPredefinedLightModel.GlitterLeft);
			chart.FitMode = ENCartesianChartFitMode.Aspect;
            chart.ModelDepth = 55.0f;
            chart.ModelWidth = 55.0f;
            chart.ModelHeight = 55.0f;

			chart.SetPredefinedCartesianAxes(ENPredefinedCartesianAxis.XYZLinear);
            chart.Interactor = new NInteractor(new NTrackballTool());

            // setup the x axis
            NLinearScale scaleX = (NLinearScale)chart.Axes[ENCartesianAxis.PrimaryX].Scale;
            scaleX.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None;
            scaleX.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot;
			scaleX.MajorGridLines.SetShowAtWall(ENChartWall.Back, true);
			scaleX.MajorGridLines.SetShowAtWall(ENChartWall.Bottom, true);

			// setup the y axis
            NLinearScale scaleY = (NLinearScale)chart.Axes[ENCartesianAxis.PrimaryY].Scale;
            scaleY.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None;
            scaleY.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot;
			scaleY.MajorGridLines.SetShowAtWall(ENChartWall.Left, true);
			scaleY.MajorGridLines.SetShowAtWall(ENChartWall.Back, true);

			// add interlace stripe
			NScaleStrip strip = new NScaleStrip(new NColorFill(NColor.Beige), null, true, 0, 0, 1, 1);
			strip.Interlaced = true;
			strip.SetShowAtWall(ENChartWall.Back, true);
			strip.SetShowAtWall(ENChartWall.Left, true);
			scaleY.Strips.Add(strip);

			// setup the z axis
            NLinearScale scaleZ = (NLinearScale)chart.Axes[ENCartesianAxis.Depth].Scale;
			scaleZ.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None;
            scaleZ.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot;
			scaleZ.MajorGridLines.SetShowAtWall(ENChartWall.Bottom, true);
			scaleZ.MajorGridLines.SetShowAtWall(ENChartWall.Left, true);

			// add an error bar series
			m_ErrorBar = new NErrorBarSeries();
            chart.Series.Add(m_ErrorBar);

            m_ErrorBar.Stroke = new NStroke(NColor.Black);
            m_ErrorBar.Fill = new NColorFill(NColor.DarkBlue);
			m_ErrorBar.Size = 10;

            m_ErrorBar.UseXValues = true;
            m_ErrorBar.UseZValues = true;

            GenerateNewData();
			
			// chartView.Document.StyleSheets.ApplyTheme(new NChartTheme(ENChartPalette.Bright, false));

			return chartViewWithCommandBars;
		}
		/// 
		/// 
		/// 
		/// 
		public NWidget CreateExampleControls()
		{
			NStackPanel stack = new NStackPanel();
			NUniSizeBoxGroup group = new NUniSizeBoxGroup(stack);
			
			NCheckBox inflateMarginsCheckBox = new NCheckBox("Inflate Margins");
			inflateMarginsCheckBox.CheckedChanged += OnInflateMarginsCheckBoxCheckedChanged;
			inflateMarginsCheckBox.Checked = true;
			stack.Add(inflateMarginsCheckBox);

			NCheckBox showUpperXErrorCheckBox = new NCheckBox("Show Upper X Error");
			showUpperXErrorCheckBox.CheckedChanged += OnShowUpperXErrorCheckBoxCheckedChanged;
			showUpperXErrorCheckBox.Checked = true;
			stack.Add(showUpperXErrorCheckBox);

			NCheckBox showLowerXErrorCheckBox = new NCheckBox("Show Lower X Error");
			showLowerXErrorCheckBox.CheckedChanged += OnShowLowerXErrorCheckBoxCheckedChanged;
			showLowerXErrorCheckBox.Checked = true;
			stack.Add(showLowerXErrorCheckBox);

			NNumericUpDown xErrorSizeUpDown = new NNumericUpDown();
			xErrorSizeUpDown.Value = m_ErrorBar.XErrorSize;
			xErrorSizeUpDown.ValueChanged += OnXErrorSizeUpDownValueChanged;
			stack.Add(NPairBox.Create("X Error Size:", xErrorSizeUpDown));

			NCheckBox showUpperYErrorCheckBox = new NCheckBox("Show Upper Y Error");
			showUpperYErrorCheckBox.CheckedChanged += OnShowUpperYErrorCheckBoxCheckedChanged;
			showUpperYErrorCheckBox.Checked = true;
			stack.Add(showUpperYErrorCheckBox);

			NCheckBox showLowerYErrorCheckBox = new NCheckBox("Show Lower Y Error");
			showLowerYErrorCheckBox.CheckedChanged += OnShowLowerYErrorCheckBoxCheckedChanged;
			showLowerYErrorCheckBox.Checked = true;
			stack.Add(showLowerYErrorCheckBox);

			NNumericUpDown yErrorSizeUpDown = new NNumericUpDown();
			yErrorSizeUpDown.Value = m_ErrorBar.YErrorSize;
			yErrorSizeUpDown.ValueChanged += OnYErrorSizeUpDownValueChanged;
			stack.Add(NPairBox.Create("X Error Size:", yErrorSizeUpDown));

			//
			NCheckBox showUpperZErrorCheckBox = new NCheckBox("Show Upper Z Error");
			showUpperZErrorCheckBox.CheckedChanged += OnShowUpperZErrorCheckBoxCheckedChanged;
			showUpperZErrorCheckBox.Checked = true;
			stack.Add(showUpperZErrorCheckBox);

			NCheckBox showLowerZErrorCheckBox = new NCheckBox("Show Lower Z Error");
			showLowerZErrorCheckBox.CheckedChanged += OnShowLowerZErrorCheckBoxCheckedChanged;
			showLowerZErrorCheckBox.Checked = true;
			stack.Add(showLowerZErrorCheckBox);

			NNumericUpDown zErrorSizeUpDown = new NNumericUpDown();
			zErrorSizeUpDown.Value = m_ErrorBar.YErrorSize;
			zErrorSizeUpDown.ValueChanged += OnZErrorSizeUpDownValueChanged;
			stack.Add(NPairBox.Create("Z Error Size:", zErrorSizeUpDown));

            NButton changeDataButton = new NButton("Change Data");
			changeDataButton.Click += OnChangeDataButtonClick;
            stack.Add(changeDataButton);

            return group;
		}

        public string GetExampleDescription()
		{
			return @"

This example showcases a XYZ Error Bar chart, which represents uncertainty in the X, Y, and Z values. Use the controls to adjust various properties of the error bar series, such as whisker size, visibility of upper and lower errors, and more.

"; } /// /// Gets the relevant documentation links for the example /// /// public (string Name, string Url)[] GetDocumentationUrls() { return new[] { ("Error Bar Series", "https://www.nevron.com/docs/openvision/error-bar-chart-series.html"), ("Common Series Functionality", "https://www.nevron.com/docs/openvision/chart-common-series-functionality.html"), ("3D Charts", "https://www.nevron.com/docs/openvision/3d-charts.html"), ("Cartesian Axes", "https://www.nevron.com/docs/openvision/cartesian-chart-axes.html"), }; } #endregion #region Implementation private void GenerateNewData() { m_ErrorBar.DataPoints.Clear(); Random random = new Random(); for (int i = 0; i < 10; i++) { double y = 20 + random.NextDouble() * 30; double x = 20 + random.NextDouble() * 30; double z = 20 + random.NextDouble() * 30; double lowerXError = (2 + 2 * random.NextDouble()); double upperXError = (2 + 2 * random.NextDouble()); double lowerYError = (2 + 2 * random.NextDouble()); double upperYError = (2 + 2 * random.NextDouble()); double lowerZError = (2 + 2 * random.NextDouble()); double upperZError = (2 + 2 * random.NextDouble()); m_ErrorBar.DataPoints.Add(new NErrorBarDataPoint(x, y, z, upperXError, lowerXError, upperYError, lowerYError, upperZError, lowerZError)); } } #endregion #region Event Handlers private void OnChangeDataButtonClick(NEventArgs arg) { GenerateNewData(); } void OnInflateMarginsCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.InflateMargins = ((NCheckBox)arg.TargetNode).Checked; } void OnXErrorSizeUpDownValueChanged(NValueChangeEventArgs arg) { m_ErrorBar.XErrorSize = ((NNumericUpDown)arg.TargetNode).Value; } void OnShowLowerXErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowLowerXError = ((NCheckBox)arg.TargetNode).Checked; } void OnShowUpperXErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowUpperXError = ((NCheckBox)arg.TargetNode).Checked; } void OnYErrorSizeUpDownValueChanged(NValueChangeEventArgs arg) { m_ErrorBar.YErrorSize = ((NNumericUpDown)arg.TargetNode).Value; } void OnShowLowerYErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowLowerYError = ((NCheckBox)arg.TargetNode).Checked; } void OnShowUpperYErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowUpperYError = ((NCheckBox)arg.TargetNode).Checked; } void OnZErrorSizeUpDownValueChanged(NValueChangeEventArgs arg) { m_ErrorBar.ZErrorSize = ((NNumericUpDown)arg.TargetNode).Value; } void OnShowLowerZErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowLowerZError = ((NCheckBox)arg.TargetNode).Checked; } void OnShowUpperZErrorCheckBoxCheckedChanged(NValueChangeEventArgs arg) { m_ErrorBar.ShowUpperZError = ((NCheckBox)arg.TargetNode).Checked; } #endregion #region Fields NErrorBarSeries m_ErrorBar; #endregion #region Static Methods #endregion #region Constants #endregion #region Nested Types #endregion } }

Download a fully functional C# (.cs) XYZ Scatter Error Bar Example for WPF Solution

VB.NET XYZ Scatter Error Bar Example Code for Nevron Chart for WPF
Language: VB.NET

Imports Nevron.Nov
Imports Nevron.Nov.Chart
Imports Nevron.Nov.Chart.Tools
Imports Nevron.Nov.Dom
Imports Nevron.Nov.Graphics
Imports Nevron.Nov.Layout
Imports Nevron.Nov.UI
Imports Nevron.Nov.Windows.Wpf
Imports System

Class MainWindow

#Region "Constructors"

	Public Sub New()
		' This call is required by the designer.
		InitializeComponent()

		' Add any initialization after the InitializeComponent() call.

		' Set form title
		Title = "NOV WPF - NXYZErrorBarExample"

		' Create the NOV example and its controls
		Dim exampleContent As NWidget = CreateExampleContent()
		Dim exampleControls As NWidget = CreateExampleControls()
		If Not exampleControls Is Nothing Then
			exampleControls.PreferredWidth = 300
		End If

		' Place the example and its controls in a pair box
		Dim pairBox As NPairBox = New NPairBox(exampleContent, exampleControls)
		pairBox.FillMode = ENStackFillMode.First
		pairBox.FitMode = ENStackFitMode.First
		pairBox.Margins = New NMargins(NDesign.HorizontalSpacing, NDesign.VerticalSpacing)

		' Host the example in the form
		Dim host As NNovWidgetHost(Of NWidget) = New NNovWidgetHost(Of NWidget)(pairBox)
		Content = host
	End Sub


#End Region

#Region "Example"

        Public Function CreateExampleContent() As NWidget
            Dim chartViewWithCommandBars As NChartViewWithCommandBars = New NChartViewWithCommandBars()
            Dim chartView = chartViewWithCommandBars.View
            chartView.Surface.CreatePredefinedChart(ENPredefinedChartType.Cartesian)

            ' configure title
            chartView.Surface.Titles(0).Text = "XYZ Scatter Error Bar"

            ' configure chart
            Dim chart = CType(chartView.Surface.Charts(0), NCartesianChart)

            chart.Enable3D = True
            chart.Projection.SetPredefinedProjection(ENPredefinedProjection.PerspectiveTilted)
            chart.LightModel.SetPredefinedLightModel(ENPredefinedLightModel.GlitterLeft)
            chart.FitMode = ENCartesianChartFitMode.Aspect
            chart.ModelDepth = 55.0F
            chart.ModelWidth = 55.0F
            chart.ModelHeight = 55.0F

            chart.SetPredefinedCartesianAxes(ENPredefinedCartesianAxis.XYZLinear)
            chart.Interactor = New NInteractor(New NTrackballTool())

            ' setup the x axis
            Dim scaleX As NLinearScale = chart.Axes(ENCartesianAxis.PrimaryX).Scale
            scaleX.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None
            scaleX.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot
            scaleX.MajorGridLines.SetShowAtWall(ENChartWall.Back, True)
            scaleX.MajorGridLines.SetShowAtWall(ENChartWall.Bottom, True)

            ' setup the y axis
            Dim scaleY As NLinearScale = chart.Axes(ENCartesianAxis.PrimaryY).Scale
            scaleY.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None
            scaleY.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot
            scaleY.MajorGridLines.SetShowAtWall(ENChartWall.Left, True)
            scaleY.MajorGridLines.SetShowAtWall(ENChartWall.Back, True)

            ' add interlace stripe
            Dim strip As NScaleStrip = New NScaleStrip(New NColorFill(NColor.Beige), Nothing, True, 0, 0, 1, 1)
            strip.Interlaced = True
            strip.SetShowAtWall(ENChartWall.Back, True)
            strip.SetShowAtWall(ENChartWall.Left, True)
            scaleY.Strips.Add(strip)

            ' setup the z axis
            Dim scaleZ As NLinearScale = chart.Axes(ENCartesianAxis.Depth).Scale
            scaleZ.ViewRangeInflateMode = ENScaleViewRangeInflateMode.None
            scaleZ.MajorGridLines.Stroke.DashStyle = ENDashStyle.Dot
            scaleZ.MajorGridLines.SetShowAtWall(ENChartWall.Bottom, True)
            scaleZ.MajorGridLines.SetShowAtWall(ENChartWall.Left, True)

            ' add an error bar series
            m_ErrorBar = New NErrorBarSeries()
            chart.Series.Add(m_ErrorBar)

            m_ErrorBar.Stroke = New NStroke(NColor.Black)
            m_ErrorBar.Fill = New NColorFill(NColor.DarkBlue)
            m_ErrorBar.Size = 10

            m_ErrorBar.UseXValues = True
            m_ErrorBar.UseZValues = True

            GenerateNewData()

            ' chartView.Document.StyleSheets.ApplyTheme(new NChartTheme(ENChartPalette.Bright, false));

            Return chartViewWithCommandBars
        End Function
        ''' 
        ''' 
        ''' 
        ''' 
        Public Function CreateExampleControls() As NWidget
            Dim stack As NStackPanel = New NStackPanel()
            Dim group As NUniSizeBoxGroup = New NUniSizeBoxGroup(stack)

            Dim inflateMarginsCheckBox As NCheckBox = New NCheckBox("Inflate Margins")
            inflateMarginsCheckBox.CheckedChanged += AddressOf OnInflateMarginsCheckBoxCheckedChanged
            inflateMarginsCheckBox.Checked = True
            stack.Add(inflateMarginsCheckBox)

            Dim showUpperXErrorCheckBox As NCheckBox = New NCheckBox("Show Upper X Error")
            showUpperXErrorCheckBox.CheckedChanged += AddressOf OnShowUpperXErrorCheckBoxCheckedChanged
            showUpperXErrorCheckBox.Checked = True
            stack.Add(showUpperXErrorCheckBox)

            Dim showLowerXErrorCheckBox As NCheckBox = New NCheckBox("Show Lower X Error")
            showLowerXErrorCheckBox.CheckedChanged += AddressOf OnShowLowerXErrorCheckBoxCheckedChanged
            showLowerXErrorCheckBox.Checked = True
            stack.Add(showLowerXErrorCheckBox)

            Dim xErrorSizeUpDown As NNumericUpDown = New NNumericUpDown()
            xErrorSizeUpDown.Value = m_ErrorBar.XErrorSize
            xErrorSizeUpDown.ValueChanged += AddressOf OnXErrorSizeUpDownValueChanged
            stack.Add(NPairBox.Create("X Error Size:", xErrorSizeUpDown))

            Dim showUpperYErrorCheckBox As NCheckBox = New NCheckBox("Show Upper Y Error")
            showUpperYErrorCheckBox.CheckedChanged += AddressOf OnShowUpperYErrorCheckBoxCheckedChanged
            showUpperYErrorCheckBox.Checked = True
            stack.Add(showUpperYErrorCheckBox)

            Dim showLowerYErrorCheckBox As NCheckBox = New NCheckBox("Show Lower Y Error")
            showLowerYErrorCheckBox.CheckedChanged += AddressOf OnShowLowerYErrorCheckBoxCheckedChanged
            showLowerYErrorCheckBox.Checked = True
            stack.Add(showLowerYErrorCheckBox)

            Dim yErrorSizeUpDown As NNumericUpDown = New NNumericUpDown()
            yErrorSizeUpDown.Value = m_ErrorBar.YErrorSize
            yErrorSizeUpDown.ValueChanged += AddressOf OnYErrorSizeUpDownValueChanged
            stack.Add(NPairBox.Create("X Error Size:", yErrorSizeUpDown))

            '
            Dim showUpperZErrorCheckBox As NCheckBox = New NCheckBox("Show Upper Z Error")
            showUpperZErrorCheckBox.CheckedChanged += AddressOf OnShowUpperZErrorCheckBoxCheckedChanged
            showUpperZErrorCheckBox.Checked = True
            stack.Add(showUpperZErrorCheckBox)

            Dim showLowerZErrorCheckBox As NCheckBox = New NCheckBox("Show Lower Z Error")
            showLowerZErrorCheckBox.CheckedChanged += AddressOf OnShowLowerZErrorCheckBoxCheckedChanged
            showLowerZErrorCheckBox.Checked = True
            stack.Add(showLowerZErrorCheckBox)

            Dim zErrorSizeUpDown As NNumericUpDown = New NNumericUpDown()
            zErrorSizeUpDown.Value = m_ErrorBar.YErrorSize
            zErrorSizeUpDown.ValueChanged += AddressOf OnZErrorSizeUpDownValueChanged
            stack.Add(NPairBox.Create("Z Error Size:", zErrorSizeUpDown))

            Dim changeDataButton As NButton = New NButton("Change Data")
            changeDataButton.Click += AddressOf OnChangeDataButtonClick
            stack.Add(changeDataButton)

            Return group
        End Function

        Public Function GetExampleDescription() As String
            Return "

This example showcases a XYZ Error Bar chart, which represents uncertainty in the X, Y, and Z values. Use the controls to adjust various properties of the error bar series, such as whisker size, visibility of upper and lower errors, and more.

" End Function ''' ''' Gets the relevant documentation links for the example ''' ''' Public Function GetDocumentationUrls() As (String, String)() Return {("Error Bar Series", "https://www.nevron.com/docs/openvision/error-bar-chart-series.html"), ("Common Series Functionality", "https://www.nevron.com/docs/openvision/chart-common-series-functionality.html"), ("3D Charts", "https://www.nevron.com/docs/openvision/3d-charts.html"), ("Cartesian Axes", "https://www.nevron.com/docs/openvision/cartesian-chart-axes.html")} End Function #End Region #Region "Implementation" Private Sub GenerateNewData() m_ErrorBar.DataPoints.Clear() Dim random As Random = New Random() For i = 0 To 9 Dim y As Double = 20 + random.NextDouble() * 30 Dim x As Double = 20 + random.NextDouble() * 30 Dim z As Double = 20 + random.NextDouble() * 30 Dim lowerXError As Double = (2 + 2 * random.NextDouble()) Dim upperXError As Double = (2 + 2 * random.NextDouble()) Dim lowerYError As Double = (2 + 2 * random.NextDouble()) Dim upperYError As Double = (2 + 2 * random.NextDouble()) Dim lowerZError As Double = (2 + 2 * random.NextDouble()) Dim upperZError As Double = (2 + 2 * random.NextDouble()) m_ErrorBar.DataPoints.Add(New NErrorBarDataPoint(x, y, z, upperXError, lowerXError, upperYError, lowerYError, upperZError, lowerZError)) Next End Sub #End Region #Region "Event Handlers" Private Sub OnChangeDataButtonClick(arg As NEventArgs) GenerateNewData() End Sub Private Sub OnInflateMarginsCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.InflateMargins = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnXErrorSizeUpDownValueChanged(arg As NValueChangeEventArgs) m_ErrorBar.XErrorSize = CType(arg.TargetNode, NNumericUpDown).Value End Sub Private Sub OnShowLowerXErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowLowerXError = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnShowUpperXErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowUpperXError = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnYErrorSizeUpDownValueChanged(arg As NValueChangeEventArgs) m_ErrorBar.YErrorSize = CType(arg.TargetNode, NNumericUpDown).Value End Sub Private Sub OnShowLowerYErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowLowerYError = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnShowUpperYErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowUpperYError = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnZErrorSizeUpDownValueChanged(arg As NValueChangeEventArgs) m_ErrorBar.ZErrorSize = CType(arg.TargetNode, NNumericUpDown).Value End Sub Private Sub OnShowLowerZErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowLowerZError = CType(arg.TargetNode, NCheckBox).Checked End Sub Private Sub OnShowUpperZErrorCheckBoxCheckedChanged(arg As NValueChangeEventArgs) m_ErrorBar.ShowUpperZError = CType(arg.TargetNode, NCheckBox).Checked End Sub #End Region #Region "Fields" Private m_ErrorBar As NErrorBarSeries #End Region #Region "Static Methods" #End Region #Region "Constants" #End Region #Region "Nested Types" #End Region End Class

Download a fully functional VB.NET (.vb) XYZ Scatter Error Bar Example for WPF Solution