Values Annotation is an implementation where the chart automatically generates numeric annotation based on the data itself. Values Annotation can be used for any axis, with any chart type, and with any data layout. It is controlled by the following properties of the axis:
Property | Description |
---|---|
AnnoFormat | Gets or sets the axis annotation format. |
AnnoFormatString | Gets or set the annotation format string used with manual formats. |
Setting the AnnoFormat property to one of the FormatEnum values will format the data entered into the array data into one of .NET's twenty-two formats. Setting AnnoFormat to either FormatEnum.NumericManual or FormatEnum.DateManual allows a format string to be entered into the AnnoFormatString property. Manual format strings are designated in the .NET framework and below are links to more information:
The DateTime format strings are divided into two categories:
You can also customize your format strings by using the custom numeric format strings.
If AnnoFormat is set to FormatEnum.NumericManual and AnnoFormatString is empty, then the numeric values are formatted the same as FormatEnum.NumericGeneral.
If AnnoFormat is set to FormatEnum.DateManual and AnnoFormatString is empty, then the date and time values are formatted as appropriate for the time span of the axis as defined by the axis maximum and minimum values.