Changes

Charts

766 bytes added, 15:55, 23 January 2018
/* Chart properties */
* '''Interval (double):''' the interval between gridlines on the axis
* '''DateTimeIntervalType (int):''' the interval type in case of a date axis
* '''LabelFormat (string):''' the format string to define how value labels are formatted. See [[#Label formatting|Label formatting]]
* '''Minimum (object):''' the minimum value to display on the axis
* '''Maximum (object):''' the maximum value to display on the axis
* '''Value (object):''' the value of the threshold (on the Y-axis)
* '''Color (int):''' the color of the threshold line
 
=== Label formatting ===
The ChartAxis object contains a property "LabelFormat" that allows you to customize how the value labels on the axes are presented. This special format string only applies to numbers and dates.
Some examples of what you could do what the format string:
 
{| class="wikitable"
! Input
! Format string
! Output
|-
|5.5
|"##.000"
|5.500
|-
|01/05/2017 16:00:00
|"yyyy"
|2017
|-
|01/05/2017 16:00:00
|"dd/MM/yyyy"
|01-05-2017
|-
|}
 
[https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings See here] for how to format numeric objects, and [https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings here] for how to format dates.
39
edits