maui-devexpress-dot-maui-dot-charts-dot-chartview-6f6383ea.md
Gets or sets how the chart generates series from a data source based on a template. This is a bindable property.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public SeriesTemplateAdapter SeriesDataTemplate { get; set; }
| Type | Description |
|---|---|
| SeriesTemplateAdapter |
An object that stores series generation settings.
|
ChartView can generate series from the bound data source based on a template that defines series type and settings. This functionality is available if the data source stores data for all series (their names, point arguments and values), and can be useful when the number of series is unknown or very large.
Use the SeriesDataTemplate property to enable series generation.
In this example, the chart generates bar series that visualize GDP per capita by year for the G7 from 2017 to 2019.
Create a data source for series generation. Each object in the list stores a country’s name, year, and the GDP value for this year.
Set the ChartView.SeriesDataTemplate property to a SeriesTemplateAdapter object with the following properties specified (all these settings are required for series generation):
ChartView displays generated series in addition to series that you define in the Series collection.
See Also