Back to Devexpress

Diagram.SeriesTemplate Property

wpf-devexpress-dot-xpf-dot-charts-dot-diagram-4cfa141c.md

latest3.1 KB
Original Source

Diagram.SeriesTemplate Property

Specifies the series template settings.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public Series SeriesTemplate { get; set; }
vb
Public Property SeriesTemplate As Series

Property Value

TypeDescription
Series

A Series object that contains the template settings for bound series.

|

Remarks

Use the SeriesTemplate property for data binding, using a series template.

When a data source is assigned to the ChartControl.DataSource property, define the name of a data column upon which new series will be created (and named), via the Diagram.SeriesDataMember property. And, for the SeriesTemplate property, choose the common view type and other options for the auto-created series. Then, assign the required data fields to the Series.ArgumentDataMember and Series.ValueDataMember properties.

For more information, refer to Define a Template for Automatic Series.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SeriesTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-visualize-data-in-chart/CS/WpfPivotChart/MainWindow.xaml#L43

xml
<dxc:XYDiagram2D SeriesDataMember="Series">
    <dxc:XYDiagram2D.SeriesTemplate>
        <dxc:BarSideBySideSeries2D ArgumentDataMember="Arguments"

See Also

DataSource

SeriesDataMember

Define a Template for Automatic Series

Diagram Class

Diagram Members

DevExpress.Xpf.Charts Namespace