Legend is used as a reference for each DataSeries or DataPoint. Legend can be created either for individual DataPoints or for a DataSeries. Please refer to the figure below, Legend is marked in red:
<vc:Chart ... >
<vc:Chart.Legends>
<vc:Legend .../>
</vc:Chart.Legends>
</vc:Chart>
If there are multiple Legends inside a Chart, then each Legend must be given a unique name which can be assigned to respective DataSeries Legend property.
List of attributes:
|
Attribute |
Function |
|
Sets color of the border line. | |
|
Sets the thickness of the border line. | |
|
Sets the background color of the Legend. | |
|
Sets the parameter used to create rounded or elliptical corners for the element. | |
|
This attribute sets the pointer that displays when the user moves the mouse over an element. | |
|
If True then legend is placed inside the plotting region. Otherwise outside. | |
|
Enables or disables the Legend. By default this is true. | |
|
Sets the gap between legend and other elements. | |
|
Sets color of the text in legend. | |
|
Sets the font of the text inside legend. | |
|
Sets the font size of the text in legend. | |
|
Sets the font style of the text in legend. Takes values like "Italic" or "Normal" | |
|
Sets the style for the text. Takes values like "Bold", "Normal", "Black" ... | |
|
Sets the horizontal positioning of the legend. Takes values like "Left", "Center", "Right" and Stretch. | |
|
Sets the hyper link (http:// is required). | |
|
Sets where the URL specified in Href to be opened. | |
|
Sets the gap between each entry in legend. | |
|
Enables or disables lighting effect for the legend. | |
|
Sets the maximum height of a Legend. | |
|
Sets the maximum width of a Legend. | |
|
Opacity can be used to make any element transparent or opaque. | |
|
Sets the gap to be left between various elements inside Legend. | |
|
Gets or Sets whether the entries inside the Legend should be reversed or not. | |
|
Sets the text for the title of the Legend. | |
|
Sets the horizontal positioning of the title of the Legend. | |
|
Sets the background color for the title. | |
|
Sets the color for the title text. | |
|
Sets the font for the title text. | |
|
Sets the font size for title text. | |
|
Sets the style for the text in title. Takes values like "Italic" or "Normal". | |
|
Sets text styles like "Bold", "Normal", "Black" ... | |
|
Sets the tool tip text content for the legend. | |
|
Sets the vertical positioning of the legend. Takes values like "Top", "Center", "Bottom" and Stretch. |