ErrorBars Class TIBCO Spotfire 6.0 API Reference
Represents Error Bars on a ScaleAxis.
Inheritance Hierarchy

System Object
  Spotfire.Dxp.Framework.DocumentModel Node
    Spotfire.Dxp.Framework.DocumentModel DocumentNode
      Spotfire.Dxp.Application.Visuals ErrorBars

Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

[SerializableAttribute]
[PersistenceVersionAttribute(12, 0)]
public sealed class ErrorBars : DocumentNode
Remarks

Error bars are lines drawn from the center of a marker (or from the end of a bar in a bar chart) to indicate the error (uncertainty) of a measurement or aggregation.
Examples

The following example sets the Y axis expression in a line chart, and a corresponding error bar expression.
lineChart.YAxis.Expression = "Avg([Sales]) as MySales, Avg([Profit]) as MyProfit";

CategoryKey salesKey = new CategoryKey("MySales");
lineChart.YAxis.ErrorBars.IndexedEnabled[salesKey] = true;
lineChart.YAxis.ErrorBars.IndexedUpperExpression[salesKey] = "StdErr(Sales)";
lineChart.YAxis.ErrorBars.IndexedLowerExpression[salesKey] = "StdErr(Sales)";

CategoryKey profitKey = new CategoryKey("MyProfit");
lineChart.YAxis.ErrorBars.IndexedEnabled[profitKey] = true;
lineChart.YAxis.ErrorBars.IndexedUpperExpression[profitKey] = "StdErr(Profit)";
lineChart.YAxis.ErrorBars.IndexedLowerExpression[profitKey] = "StdErr(Profit)";
See Also