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. Image for the cookie policy date
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?

Platform: WinForms |
Control: XlsIO

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



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.





              Error bar set using XlsIO


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile