Sets and gets the options to customize the legend for the ranges in the circular gauge.
Sets and gets the alignment of the legend in the circular gauge.
Defaults to ‘Center’
string
Sets and gets the background color of the legend in circular gauge.
Defaults to ‘transparent’
Sets and gets the options to customize the border settings of the legend.
string
Sets and gets the height of the legend in the circular gauge.
Defaults to null
Sets and gets the location of the legend, relative to the circular gauge.
If x is 20, legend moves by 20 pixels to the right of the gauge. It requires the position
to be Custom
.
<div id='Gauge'></div>
let gauge: CircularGauge = new CircularGauge({
...
legendSettings: {
visible: true,
position: 'Custom',
location: { x: 100, y: 150 },
},
...
});
this.gauge.appendTo('#Gauge');
Sets and gets the options to customize the legend margin.
number
Sets and gets the opacity of the legend.
Defaults to 1
number
Sets and gets the options to customize the padding between legend items.
Defaults to 8
Sets and gets the position of the legend in the circular gauge.
Defaults to ‘Auto’
Sets and gets the shape of the legend in circular gauge.
Defaults to Circle
Sets and gets the options to customize the border for the shape of the legend in the circular gauge.
number
Sets and gets the height of the legend shape in circular gauge.
Defaults to 10
number
Sets and gets the padding for the legend shape in circular gauge.
Defaults to 5
number
Sets and gets the width of the legend shape in circular gauge.
Defaults to 10
Sets and gets the options to customize the text of the legend.
boolean
Enables and disables the ranges visibility collapses based on the legend visibility.
Defaults to true
boolean
Enable and disables the visibility of the legend in circular gauge.
Defaults to false
string
Sets and gets the width of the legend in the circular gauge.
Defaults to null