Visual Basic (Declaration) | |
---|---|
Public Class AxisMarker Inherits ScaleRange Implements IInstanceID |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class AxisMarker : ScaleRange, IInstanceID |
Each marker displayed on the chart will also have a
LegendEntry in the
Chart.LegendBox.
There are two ways to use AxisMarkers.
There are two ways to use AxisMarkers.
- Attach to axis
An AxisMarker can be added to the Axis.Markers collection of any axis. In this case, a numeric, time, or text: value or range must be specified.
When Value is specified, ValueLow and ValueHigh are both set to this value. When ValueLow and ValueHigh are equivalent, this AxisMarker is represented by the Line object, otherwise, Background fills the range between ValueLow and ValueHigh. - Attach to element
An AxisMarker is instantiated and passed to the Element.AxisMarker property of any element. In such a case, the axis marker is drawn on the Axis where the element's name is displayed.
See sample 'AxisMarkerAdvanced.aspx' in the download.
System.Object
dotnetCHARTING.ScaleRange
dotnetCHARTING.AxisMarker