Skip to content

The following example creates a custom ASP.NET Core 'Moving Average' indicator.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-core-dashboard-trend-indicators

Repository files navigation

BI Dashboard for ASP.NET Core - Custom Trend Indicator

The following example creates a custom ASP.NET Core “Moving Average” indicator (when using DevExpress BI Dashboard):

Moving Average Indicator

  1. Create a ChartCustomIndicator descendant (the MovingIndicator class in this example). MovingIndicator accepts a collection of data points, evaluates values, and returns resulting points. These points are used to draw the indicator.

  2. Register MovingIndicator in IndicatorFactory to make it available as an indicator type. Call the Register method in your application before you save and load a dashboard (to serialize and deserialize the indicator within the dashboard’s XML).

  3. Register ChartIndicatorsExtension before the control is rendered to add the MovingIndicator type to the Trend Indicators editor.

  4. Create an instance of MovingIndicator and specify desired indicator settings.

  5. Once you launch the application, open the Trend Indicators editor and add the new "Moving Average" indicator type.

Files to Review

Documentation