Legend

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:

 

Usage:

 

<vc:Chart ... >

 

<vc:Legend ... />

 

</vc:Chart>

 

 

 

List of attributes:

Attribute

Function

AlignmentX

Sets the horizontal positioning of the Legend. Takes values like "Left", "Center" and "Right".

AlignmentY

Sets the vertical positioning of the Legend. Takes values like "Top", "Center" and "Bottom".

Bevel

Enables or disables bevel effect to the Legend.

BorderColor

Sets color of the border line.

BorderStyle

Sets style of the border line like "Dashed", "Dotted" ...

BorderThickness

Sets the thickness of the border line.

Color

Sets the color of the Legend.

Cursor

Sets the pointer that displays when the user moves the mouse over this element.

DockInsidePlotArea

If True then Legend is placed inside the plotting region. Otherwise outside.

Enabled

Enables or disables the Legend. By default this is true.

FontColor

Sets color of the text in Legend.

FontFamily

Sets the font of the text inside Legend.

FontSize

Sets the font size of the text in Legend.

FontStyle

Sets the font style of the text in Legend. Takes values like "Italic" or "Normal".

FontWeight

Sets the style for the text. Takes values like "Bold", "Normal", "Black" etc.

Href

Sets the hyper link (http:// is required).

HrefTarget

Sets where the URL specified in Href to be opened.

Image

Sets the source of the image that has to be applied to the element.

ImageStretch

Sets how the image should be applied to the element.

LightingEnabled

Enables or disables lighting effect for the Legend.

MaxHeight

Set the maximum height for the Legend.

MaxWidth

Sets the maximum width for the Legend.

Padding

Sets the gap to be left between various elements inside Legend.

RadiusX

Sets the parameter used to create rounded or elliptical corners for the element.

RadiusY

Sets the parameter used to create rounded or elliptical corners for the element.

ShadowEnabled

Enables or disables shadow to the Legend.

Title

Sets the text for the title of the Legend.

TitleAlignmentX

Sets the horizontal positioning of the title of the Legend.

TitleBackground

Sets the background color for the title.

TitleFontColor

Sets the color for the title text.

TitleFontFamily

Sets the font for the title text.

TitleFontSize

Sets the font size for title text.

TitleFontStyle

Sets the style for the text in title. Takes values like "Italic" or "Normal".

TitleFontWeight

Sets text styles like "Bold", "Normal", "Black" ...

ToolTipText

Sets the tool tip text content for the Legend.

ZIndex

Sets the stack order of an element. An element with greater stack order is always in front of another element with lower stack order.

 

Note: JS events can be attached to this element, for more details see JavaScript Events List