The Ternary Error Bar type
NOTE: For info about XyzDataSeries, as well as other DataSeries types in SciChart, see DataSeries API
Ternary Error Bar Series are provided by the TernaryErrorBarRenderableSeries type. This renders error bars above and below the X, Y or Z-value.
To declare a TernaryErrorBarRenderableSeries, use the following code:
Declare a TernaryErrorBarRenderableSeries in Xaml / Code Behind
Declare a TernaryErrorBarRenderableSeries |
Copy Code |
---|---|
<!-- where xmlns:s="http://schemas.abtsoftware.co.uk/scichart" --> <s:SciChartTernarySurface> <s:SciChartTernarySurface.RenderableSeries> <s:TernaryErrorBarRenderableSeries x:Name="errorBarsSeries" ErrorBarCupLength="5" ErrorDirection="ZAxis" ErrorType="Absolute" HighError="5" LowError="5" Stroke="Red" StrokeThickness="2" /> </s:SciChartTernarySurface.RenderableSeries> </s:SciChartTernarySurface> // Code Behind, e.g. in OnLoaded event handler, set the DataSeries var errorBarDataSeries = new XyzDataSeries<double,double,double>(); errorBarDataSeries.Append(15, 75, 10); errorBarDataSeries.Append(25, 65, 10); errorBarDataSeries.Append(35, 55, 10); errorBarDataSeries.Append(45, 45, 10); errorBarsSeries.DataSeries = errorBarDataSeries; |
Declare a TernaryErrorBarRenderableSeries in Pure Code
Declare a TernaryErrorBarRenderableSeries |
Copy Code |
---|---|
// Declare the SciChartTernarySurface var sciChartTeranrySurface = new SciChartTernarySurface(); // ... // Declare and add a Ternary Error Bar Series var ternaryErrorBarSeries = new TernaryErrorBarRenderableSeries { ErrorBarCupLength = 5, ErrorDirection = ErrorDirection.ZAxis, ErrorType = ErrorType.Absolute, HighError = 5, LowError = 5, Stroke = Colors.Red, StrokeThickness = 2 }; // Set some data var errorBarDataSeries = new XyzDataSeries<double, double, double>(); errorBarDataSeries.Append(15, 75, 10); errorBarDataSeries.Append(25, 65, 10); errorBarDataSeries.Append(35, 55, 10); errorBarDataSeries.Append(45, 45, 10); errorBarsSeries1.DataSeries = errorBarDataSeries; |
NOTE: You can also declare RenderableSeries using full MVVM (series ViewModels). Please see MVVM DataSeries / RenderableSeries API for more details.
See Also