Interface for a class PivotChartSettingsLegendSettings
Allows to set the legend in chart can be aligned as follows:
string
Allows to set the background color of the legend that accepts value in hex and rgba as a valid CSS color string.
PivotChartBorderModel
Allows options to customize the border of the legend.
string
Allows to set the description for legends.
string
Allows to set the height of the legend in pixels.
PivotChartLocationModel
Allows to set the location of the legend, relative to the chart.
If x is 20, legend moves by 20 pixels to the right of the chart. It requires the position
to be Custom
.
...
legendSettings: {
visible: true,
position: 'Custom',
location: { x: 100, y: 150 },
},
...
PivotChartMarginModel
Allows options to customize left, right, top and bottom margins of the chart.
number
Allows to set the opacity of the legend.
number
Allows option to customize the padding between legend items.
LegendPosition
Allows to set the position of the legend in the chart are,
number
Allows to set the shape height of the legend in pixels.
number
Allows to set the padding between the legend shape and text.
number
Allows to set the shape width of the legend in pixels.
number
Allows to set the tabindex value for the legend.
PivotChartFontModel
Allows options to customize the legend text.
boolean
If set to true, series’ visibility collapses based on the legend visibility.
boolean
If set to true, legend will be visible.
string
Allows to set the width of the legend in pixels.