[VB] | Public Sub setMonotonicity(monotonicMode As Integer) |
[C#] | public void setMonotonicity(int monotonicMode); |
ChartDirector 5.1 (.NET Edition)
SplineLayer.setMonotonicity
Usage
[VB] | Public Sub setMonotonicity(monotonicMode As Integer) |
[C#] | public void setMonotonicity(int monotonicMode); |
Description
Constant | Value | Description |
---|---|---|
MonotonicNone | 0 | The spline curve is not constraint to flow in any direction. This results in the smoothest spline curve. |
MonotonicX | 1 | The spline curve is constraint to not overshooting or undershooting in the x-axis direction. This means if the data points are monotonic in the x-axis direction, the spline curve will also be monotonic in the x-axis direction. |
MonotonicY | 2 | The spline curve is constraint to not overshooting or undershooting in the y-axis direction. This means if the data points are monotonic in the y-axis direction, the spline curve will also be monotonic in the y-axis direction. |
MonotonicXY | 3 | The spline curve is constraint to not overshooting or undershooting in both the x-axis and the y-axis directions. This means if the data points are monotonic in the x-axis direction, the spline curve will also be monotonic in the x-axis direction. If the data points are monotonic in the y-axis direction, the spline curve will also be monotonic in the y-axis direction. |
MonotonicAuto | 4 | Automatically choose between MonotonicX, MonotonicY or MonotonicXY, depending on whether the data points are monotonic in the x-axis direction, or y-axis direction, or both. |
Arguments
Argument | Default | Description |
---|---|---|
monotonicMode | (Mandatory) | The monotonic constraint of the spline curve. Must be be one of the constants in the above table. If this method is never called for a spline layer, the default is MonotonicAuto. |
Return Value