chartjs-gauge-v3 - v3.0.0-beta.1 / ValueLabelOptions
• backgroundColor: Color
The background color of the label.
• borderColor: Color
The border color of the label.
• borderRadius: number
The border radius of the label.
Default
5
• borderWidth: number
The border width of the label.
• color: Color
The text color of the label.
• display: boolean
If true, display the value label.
Default
true
• font: FontSpec
• Optional
formatter: (value
: number
) => string
| number
▸ (value
): string
| number
Returns the string representation of the value as it should be displayed on the chart.
Default
Math.round
Name | Type |
---|---|
value |
number |
string
| number
• offsetX: string
| number
The offset x from needle center x. String ending with ‘%’ means percentage of the chart radius, number means pixels.
Default
0
• offsetY: string
| number
The offset y from needle center y. String ending with ‘%’ means percentage of the chart radius, number means pixels.
Default
0
• padding: Object
The padding of the label.
Name | Type | Description |
---|---|---|
bottom |
number |
Default 5 |
left |
number |
Default 5 |
right |
number |
Default 5 |
top |
number |
Default 5 |