Skip to main content
A newer version of this page is available. .

Data Point Markers

Markers indicate data points on the chart area. You can display point markers for line, point, and area series.

DataPointMarker

The following example uses the LineSeriesView.ShowMarkers property to show markers and the LineSeriesView.MarkerSize property to specify their size:

<Charts:CartesianChart x:Name="chart"  Grid.Row="1">
    <!--...-->
    <Charts:CartesianChart.Series>
        <Charts:Series x:Name="seriesErope" DisplayName="Europe">
            <Charts:Series.View>
                <Charts:LineSeriesView ShowMarkers="True" MarkerSize="9"/>
            </Charts:Series.View>
            <Charts:Series.Data>
                <Charts:DataPointCollection>
                    <Charts:DataPoint Argument="1950" Value="546" />
                    <!--...-->
                    <Charts:DataPoint Argument="2020" Value="721" />
                </Charts:DataPointCollection>
            </Charts:Series.Data>
        </Charts:Series>
        <!--...-->
    </Charts:CartesianChart.Series>
</Charts:CartesianChart>