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.
Unfortunately, activation email could not send to your email. Please try again.

How to use up down bar for Excel chart in C#, VB.NET?

This article explains how to use Up/Down Bars in chart using XlsIO.

What are Up/Down Bars?

1.  Up bars connect points on the first series in the chart group with higher values on the last series in the chart group (the lines go up from the first series).

2.  Down bars connect points on the first series in the chart group with lower values on the last series in the chart group (the lines go down from the first series).

3.  In XlsIO we can format the up or down bar by using FirstDropBar and SecondDropBar properties in SeriesFormat respectively.

 

C:\Users\kondurukeerthi.kondu\AppData\Local\Microsoft\Windows\INetCache\Content.Word\Enable_Up-Down_Drop_Bar.png

        Up/Down bars using XlsIO

 

Note: Only line charts and stock charts do support Up/Down bars. Trying to use drop bar properties to other charts might throw exception or the changes will not be reflected in the output document because those charts does not support Up/Down bars.

Code snippet to use Up/Down Bars

 

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 use up/down bars in chart using XlsIO.

C#

VB

 

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

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.