Constructor
new Labels(chart)
Parameters:
Name | Type | Description |
---|---|---|
chart |
Tee.Chart | The chart object this axis labels object belongs to. |
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
format |
Tee.Format | Defines the visual properties to paint the axis title. | ||
visible |
Boolean |
<optional> |
true | Determines if axis labels will be displayed or not. |
dateFormat |
String | "shortDate" | Configures string format for date & time labels | |
rotation |
Number | 0 | Defines the label rotation angle from 0 to 360 degree. | |
labelStyle |
String | "auto" | Determines label contents from series data ("auto", "value", "mark", "text"). | |
decimals |
Number | 2 | Defines the number of decimals for floating-point numeric labels. | |
alternate |
Boolean | false | When true, labels are displayed at alternate positions to fit more labels in the same space. |
- Source:
Methods
getLabel() → {String}
- Source:
Returns:
Returns the series label that corresponds to a given value, (or the value if no label exists).
- Type
- String
width() → {Number}
- Source:
Returns:
Returns the width in pixels of value converted to string.
- Type
- Number