WPF Charting Documentation - SciChart WPF Charts SDK v5.x
The Ternary Scatter Type

NOTE: The Ternary Chart feature requires version v4.1 of SciChart or higher

 

Ternary Scatter Series are provided by the TernaryScatterRenderableSeries type, which requires a PointMarker.

NOTE: For a detailed description of the PointMarker API, see Section Point Marker API-BaseRenderableSeries.Pointmarker

 

PointMarker Types available in SciChart include:

 

To declare a TernaryScatterRenderableSeries with PointMarker, use the following code:

Declare a TernaryScatterRenderableSeries with EllipsePointMarker in Xaml / Code Behind 
Declare a TernaryScatterRenderableSeries with EllipsePointMarker
Copy Code
<!-- where xmlns:s="http://schemas.abtsoftware.co.uk/scichart" -->
<s:SciChartTernarySurface>
    <s:SciChartTernarySurface.RenderableSeries>
        <s:TernaryScatterRenderableSeries x:Name="scatterSeries">
            <s:TernaryScatterRenderableSeries.PointMarker>
                <s:EllipsePointMarker Width="7"
                                      Height="7"
                                      Fill="Yellow" />
            </s:TernaryScatterRenderableSeries.PointMarker>
        </s:TernaryScatterRenderableSeries>
    </s:SciChartTernarySurface.RenderableSeries>
</s:SciChartTernarySurface>
// Code Behind, e.g. in OnLoaded event handler, set the DataSeries
var scatterDataSeries = new XyzDataSeries<double, double, double>();
 
scatterDataSeries.Append(15, 75, 10);
scatterDataSeries.Append(25, 65, 10);
scatterDataSeries.Append(35, 55, 10);
scatterDataSeries.Append(45, 45, 10);
 
scatterSeries.DataSeries = scatterDataSeries;
Declare a TernaryScatterRenderableSeries with EllipsePointMarker in Pure Code 
Declare a TernaryScatterRenderableSeries with EllipsePointMarker
Copy Code
// Declare the SciChartTernarySurface
var sciChartTeranrySurface = new SciChartTernarySurface();
// ...
// Declare and add a Ternary Scatter Series
var ternaryScatterSeries = new TernaryScatterRenderableSeries
{
    PointMarker = {
        Width = 7,
        Height = 7,
        Fill = Colors.Yellow
    }
};
 
// Set some data
var scatterDataSeries = new XyzDataSeries<double, double, double>();
 
scatterDataSeries.Append(15, 75, 10);
scatterDataSeries.Append(25, 65, 10);
scatterDataSeries.Append(35, 55, 10);
scatterDataSeries.Append(45, 45, 10);
 
scatterSeries.DataSeries = scatterDataSeries;

NOTE: You can also declare RenderableSeries using full MVVM (series ViewModels). Please see MVVM DataSeries / RenderableSeries API for more details.

See Also

Renderable Series APIs

 

 


SCICHART ® is a Registered Trademark in the UK, US and EEC. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!