Configures the legends in charts.
Legend in chart can be aligned as follows:
Defaults to ‘Center’
string
The background color of the bullet chart legend that accepts value in hex and rgba as a valid CSS color string.
Defaults to ‘transparent’
BorderModel
Options to customize the border of the bullet chart legend.
LocationModel
Specifies the location of the legend, relative to the bullet chart.
If x is 20, legend moves by 20 pixels to the right of the bullet chart. It requires the position
to be Custom
.
<div id='BulletChart'></div>
let chart: BulletChart = new BulletChart({
...
legendSettings: {
visible: true,
},
...
});
chart.appendTo('#BulletChart');
MarginModel
Options to customize left, right, top and bottom margins of the bullet chart.
number
Opacity of the bullet chart legend.
Defaults to 1
number
Option to customize the padding between legend items.
Defaults to 8
Position of the legend in the bullet chart are,
Defaults to ‘Auto’
number
Shape height of the bullet chart legend in pixels.
Defaults to 10
number
Padding between the bullet chart legend shape and text.
Defaults to 5
number
Shape width of the bullet chart legend in pixels.
Defaults to 10
number
TabIndex value for the bullet chart legend.
Defaults to 3
Options to customize the bullet chart legend text.
boolean
If set to true, legend will be visible.
Defaults to false