Series and Marker Models
- 2 minutes to read
This document explains how to assign one of the predefined models, or your own custom model, to your chart's series and/or series point markers.
DXCharts ships with numerous predefined models that you can assign to your series and to their point markers (if point markers are supported). Additionally, you can create your own custom series and marker models.
#Predefined Models
You can define all models in your UserControl's Resources, and assign them to the appropriate series via their Model or MarkerModel properties.
The following series types support the Model property: Bar, Financial and Pie / Donut.
The Area, Point, Line and Bubble series types implement the ISupportMarker2D interface, which means that you can specify their MarkerModel property.
For a code example, see How to: Assign Different Models for Series and Point Markers.
#Custom Models
Custom series and marker models can be defined by specifying an appropriate custom model (e.g., CustomBar2DModel) to the Model or MarkerModel property of a series.
Next, specify the desired appearance changes in the template that can contain any visual element, and assign this template to the PointTemplate property of the series custom model (e.g., CustomBar2DModel.PointTemplate).
The following image demonstrates a series with a custom marker model specified.
For details on how to create series custom models, see the How to: Create Custom Models for Chart Series example.