[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IErrorBar.Amount

Amount Property

Amount

Gets or sets the amount used by the error bar.

The meaning of the returned value depends on the current error bar value type. For example, it represents the fixed amount for FixedValue, the percentage value for Percentage, or the number of standard deviations for StDev. For custom error bars, use Plus and Minus.

Declaration
double Amount { get; set; }
Property Amount As Double
Examples
worksheet.Range["A1:B4"].Value = new object[,] {{"X", "Y"}, {1, 2}, {2, 4}, {3, 3}};
IChart chart = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
chart.SeriesCollection[0].HasErrorBars = true;
IErrorBar errorBar = chart.SeriesCollection[0].YErrorBar;
errorBar.ValueType = ErrorBarType.FixedValue;
errorBar.Amount = 0.5;
double amount = errorBar.Amount;