Interface for a class Chart3DLegendSettings
Legend in chart can be aligned as follows:
string
The background color of the legend that accepts value in hex and rgba as a valid CSS color string.
Options to customize the border of the legend.
Options to customize left, right, top and bottom padding for legend container of the chart.
string
Description for legends.
boolean
If set to true, the series get highlighted, while hovering the legend.
boolean
If set to true, legend will be visible using pages.
string
The height of the legend in pixels.
boolean
If isInversed
set to true, then it inverses legend item content (image and text).
number
Option to customize the padding between legend items.
Specifies 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
.
<div id='Chart'></div>
let chart3D: Chart3D = new Chart3D({
...
legendSettings: {
visible: true,
position: 'Custom',
location: { x: 100, y: 150 },
},
...
});
chart3D.appendTo('#Chart');
Options to customize left, right, top and bottom margins of the chart.
number
Maximum label width for the legend text.
number
maximum width for the legend title.
Mode of legend items.
number
Opacity of the legend.
number
Option to customize the padding around the legend items.
Position of the legend in the chart. Available options include:
boolean
If reverse
is set to true, it reverses the order of legend items.
number
Shape height of the legend in pixels.
number
Padding between the legend shape and text.
number
Shape width of the legend in pixels.
number
TabIndex value for the legend.
Defines the text overflow behavior to employ when the individual legend text overflows
Clip
- Specifies the text is clipped and not accessible.Ellipsis
- Specifies an ellipsis (“…”) to the clipped text.Options to customize the legend text.
Defines the text wrap behavior to employ when the individual legend text overflows
Normal
- Specifies to break words only at allowed break points.Wrap
- Specifies to break a word once it is too long to fit on a line by itself.AnyWhere
- Specifies to break a word at any point if there are no otherwise-acceptable break points in the line. string
Title for legends.
legend title position.
Options to customize the legend title.
boolean
If set to true, series visibility collapses based on the legend visibility.
boolean
If set to true, the legend will be displayed for the chart.
string
The width of the legend in pixels.