[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Expand]Chart Elements
    [Collapse]Appearance Customization
      Chart Themes and Palettes
      Custom Draw
      Series and Marker Models
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Expand]Examples
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Series and Marker Models

This document explains how to assign a predefined model or your own custom model to a chart's series and/or series point markers.

DXCharts ships with numerous predefined models that you can assign to your series and series point markers (if supported). You can also create your own custom series and marker models.

Expanded Predefined Models

You can define all models in your Window class descendant's Resources property, and then assign them to the appropriate series using 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.

Note

The Chart Control ships with two types of Series and Marker models: models that draw series or series points via their OnRender method, and models that add each series or series point to the chart’s visual tree. Models that the Chart Control uses by default belong to the first type because the Chart Control renders them faster than via the visual tree.

Refer to How to: Assign Different Models for Series and Point Markers to view a code example.

Expanded Custom Models

You can define custom series and marker models by specifying the appropriate custom model (e.g., CustomBar2DModel or CustomMarker2DModel) to the series’ Model or MarkerModel property.

Next, specify the desired appearance changes in a template that contains any visual element, and assign this template to the PointTemplate property of the series custom model (e.g., CustomBar2DModel.PointTemplate).

The following image shows a series with a custom marker model specified.

For details on how to create series custom models, see the How to: Create Custom Series Point Model example.

Expanded See Also

Is this topic helpful?​​​​​​​