We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set error bar for Excel chart in C#, VB.NET?

This article explains how to set Error Bar in chart using XlsIO.

What are Error Bars?

Error bars express potential error amounts that are graphically relative to each data point or data marker in a data series. This can be achieved in XlsIO, using HasErrorBarsX and HasErrorBarsY properties in chart series.

Code snippet to set Error Bar

 

Notes:

1.  Horizontal error bars (ErrorBarsX) are applicable for 2D bar charts.

2.  Vertical error bars (ErrorBarsY) are applicable for 2D line charts, 2D column charts, 2D area charts and stock charts.

3.  Scatter charts and bubble charts (both 2D and 3D) do support horizontal error bars and vertical error bars.

4.  Error bar type can be selected using Type property.

 

Download Complete Sample

 

Download input file with data

 

To know more about creating charts with various settings using XlsIO, please refer the documentation.

 

The following C#/ VB.NET complete code snippet shows how to set error bar in chart using XlsIO.

C#

VB

 

C:\Users\kondurukeerthi.kondu\AppData\Local\Microsoft\Windows\INetCache\Content.Word\Capture.png

              Error bar set using XlsIO

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8596 03/15/2018 03/15/2018 WinForms XlsIO
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon