Direction Property Example

This example adds error bars to the specified chart and sets the error-bar direction. Charts(0) must refer to an xy scatter, polar, bar, or bubble chart.

Set eb = ChartSpace1.Charts(0).SeriesCollection(0).ErrorBarsCollection.Add
eb.Direction = ChartSpace1.Constants.chErrorBarDirectionX