Invokes a custom function that calculates the values for the chart.
Namespace: MindFusion.Charting
Assembly: MindFusion.Charting
C#
![]() |
---|
public delegate float CalculateFunctionDelegate ( |
Visual Basic
![]() |
---|
Public Delegate Function CalculateFunctionDelegate ( _ |
Argument of type FunctionArgs. It provides data for the event and has following members:
Member Name | Description |
---|---|
float StartValue | Specifies the beginning of the numerical interval in which the function is calculated. |
float EndValue | Specifies the closing value of the numerical interval in which the function is calculated. |
double FunctionDelta | Specifies the interval with which function values are calculated. |
The delegate enables custom functions to be computed and drawn rather than settings numbers with XData and YData. The delegate's function argument specifies the numerical interval, in which the function is computed. In order to raise the CalculateFunction event, provide a method that calculates the value of a float argument and returns float result. Then, assign the method to an instance of the CalculateFunctionDelegate delegate.
The following example:
C#
![]() |
---|
/// <summary> |