Highcharts .NET  11.3.0
Highsoft.Web.Mvc.Charts.Legend Class Reference

Inherits BaseObject.

Properties

LegendAccessibility Accessibility [get, set]
 Accessibility options for the legend. Requires the Accessibilitymodule. More...
 
LegendAlign Align [get, set]
 The horizontal alignment of the legend box within the chart area.Valid values are left, center and right.In the case that the legend is aligned in a corner position, thelayout option will determine whether to place it above/belowor on the side of the plot area. More...
 
bool AlignColumns [get, set]
 If the layout is horizontal and the legend itemsspan over two lines or more, whether to align the items into verticalcolumns. Setting this to false makes room for more items, but willlook more messy. More...
 
string BackgroundColor [get, set]
 The background color of the legend. More...
 
string BorderColor [get, set]
 The color of the drawn border around the legend. More...
 
double BorderRadius [get, set]
 The border corner radius of the legend. More...
 
double BorderWidth [get, set]
 The width of the drawn border around the legend. More...
 
LegendBubbleLegend BubbleLegend [get, set]
 The bubble legend is an additional element in legend whichpresents the scale of the bubble series. Individual bubble rangescan be defined by user or calculated from series. In the case ofautomatically calculated ranges, a 1px margin of error ispermitted. More...
 
string ClassName [get, set]
 A CSS class name to apply to the legend group. More...
 
bool Enabled [get, set]
 Enable or disable the legend. There is also a series-specific option,showInLegend, that can hide theseries from the legend. In some series types this is false bydefault, so it must set to true in order to show the legend for theseries. More...
 
bool Floating [get, set]
 When the legend is floating, the plot area ignores it and is allowedto be placed below it. More...
 
Hashtable ItemCheckboxStyle [get, set]
 Default styling for the checkbox next to a legend item whenshowCheckbox is true. More...
 
double ItemDistance [get, set]
 In a legend with horizontal layout, the itemDistance defines thepixel distance between each item. More...
 
Hashtable ItemHiddenStyle [get, set]
 CSS styles for each legend item when the corresponding series orpoint is hidden. Only a subset of CSS is supported, notably thoseoptions related to text. Properties are inherited from styleunless overridden here. More...
 
Hashtable ItemHoverStyle [get, set]
 CSS styles for each legend item in hover mode. Only a subset ofCSS is supported, notably those options related to text. Propertiesare inherited from style unless overridden here. More...
 
double ItemMarginBottom [get, set]
 The pixel bottom margin for each legend item. More...
 
double ItemMarginTop [get, set]
 The pixel top margin for each legend item. More...
 
Hashtable ItemStyle [get, set]
 CSS styles for each legend item. Only a subset of CSS is supported,notably those options related to text. The default textOverflowproperty makes long texts truncate. Set it to undefined to wraptext instead. A width property can be added to control the textwidth. More...
 
double ItemWidth [get, set]
 The width for each legend item. By default the items are laid outsuccessively. In a horizontal layout, if the itemsare laid out across two rows or more, they will be vertically aligneddepending on the legend.alignColumns option. More...
 
string LabelFormat [get, set]
 A format stringfor each legend label. Available variables relates to properties onthe series, or the point in case of pies. More...
 
bool LabelFormatter [get, set]
 Callback function to format each of the series' labels. The thiskeyword refers to the series object, or the point object in case ofpie charts. By default the series or point name is printed. More...
 
LegendLayout Layout [get, set]
 The layout of the legend items. Can be one of horizontal orvertical or proximate. When proximate, the legend items will beplaced as close as possible to the graphs they're representing,except in inverted charts or when the legend position doesn't allowit. More...
 
double LineHeight [get, set]
 Line height for the legend items. Deprecated as of 2.1. Instead,the line height for each item can be set usingitemStyle.lineHeight, and the padding between items usingitemMarginTop and itemMarginBottom. More...
 
double Margin [get, set]
 If the plot area sized is calculated automatically and the legend isnot floating, the legend margin is the space between the legend andthe axis labels or plot area. More...
 
double MaxHeight [get, set]
 Maximum pixel height for the legend. When the maximum height isextended, navigation will show. More...
 
LegendNavigation Navigation [get, set]
 Options for the paging or navigation appearing when the legend isoverflown. Navigation works well on screen, but not in staticexported images. One way of working around that is toincrease the chart height inexport. More...
 
double Padding [get, set]
 The inner padding of the legend box. More...
 
bool Reversed [get, set]
 Whether to reverse the order of the legend items compared to theorder of the series or points as defined in the configuration object. More...
 
bool Rtl [get, set]
 Whether to show the symbol on the right side of the text rather thanthe left side. This is common in Arabic and Hebrew. More...
 
Shadow Shadow [get, set]
 Whether to apply a drop shadow to the legend. A backgroundColoralso needs to be applied for this to take effect. The shadow can bean object configuration containing color, offsetX, offsetY,opacity and width. More...
 
bool SquareSymbol [get, set]
 When this is true, the legend symbol width will be the same asthe symbol height, which in turn defaults to the font size of thelegend items. More...
 
Hashtable Style [get, set]
 CSS styles for the legend area. In the 1.x versions the positionof the legend area was determined by CSS. In 2.x, the position isdetermined by properties like align, verticalAlign, x and y,but the styles are still parsed for backwards compatibility. More...
 
double SymbolHeight [get, set]
 The pixel height of the symbol for series types that use a rectanglein the legend. Defaults to the font size of legend items.Note: This option is a default source of color axis height, if thecolorAxis.heightoption is not set. More...
 
double SymbolPadding [get, set]
 The pixel padding between the legend item symbol and the legenditem text. More...
 
double SymbolRadius [get, set]
 The border radius of the symbol for series types that use a rectanglein the legend. Defaults to half the symbolHeight, effectivelycreating a circle.For color axis scales, it defaults to 3. More...
 
double SymbolWidth [get, set]
 The pixel width of the legend item symbol. When the squareSymboloption is set, this defaults to the symbolHeight, otherwise 16.Note: This option is a default source of color axis width, if thecolorAxis.widthoption is not set. More...
 
LegendTitle Title [get, set]
 A title to be added on top of the legend. More...
 
bool UseHTML [get, set]
 Whether to use HTMLto render the legend item texts.Prior to 4.1.7, when using HTML, legend.navigation was disabled. More...
 
double ValueDecimals [get, set]
 For a color axis with data classes, how many decimals to render inthe legend. The default preserves the decimals of the range numbers. More...
 
string ValueSuffix [get, set]
 For a color axis with data classes, a suffix for the range numbers inthe legend. More...
 
LegendVerticalAlign VerticalAlign [get, set]
 The vertical alignment of the legend box. Can be one of top,middle or bottom. Vertical position can be further determinedby the y option.In the case that the legend is aligned in a corner position, thelayout option will determine whether to place it above/belowor on the side of the plot area.When the layout option is proximate, theverticalAlign option doesn't apply. More...
 
string Width [get, set]
 The width of the legend box. If a number is set, it translates topixels. Since v7.0.2 it allows setting a percent string of the fullchart width, for example 40%.Defaults to the full chart width for legends below or above thechart, half the chart width for legends to the left and right. More...
 
double WidthNumber [get, set]
 The width of the legend box. If a number is set, it translates topixels. Since v7.0.2 it allows setting a percent string of the fullchart width, for example 40%.Defaults to the full chart width for legends below or above thechart, half the chart width for legends to the left and right. More...
 
double X [get, set]
 The x offset of the legend relative to its horizontal alignmentalign within chart.spacingLeft and chart.spacingRight. Negativex moves it to the left, positive x moves it to the right. More...
 
double Y [get, set]
 The vertical offset of the legend relative to it's vertical alignmentverticalAlign within chart.spacingTop and chart.spacingBottom. Negative y moves it up, positive y moves it down. More...
 
Hashtable CustomFields [get, set]
 

Property Documentation

◆ Accessibility

LegendAccessibility Highsoft.Web.Mvc.Charts.Legend.Accessibility
getset

Accessibility options for the legend. Requires the Accessibilitymodule.

◆ Align

LegendAlign Highsoft.Web.Mvc.Charts.Legend.Align
getset

The horizontal alignment of the legend box within the chart area.Valid values are left, center and right.In the case that the legend is aligned in a corner position, thelayout option will determine whether to place it above/belowor on the side of the plot area.

◆ AlignColumns

bool Highsoft.Web.Mvc.Charts.Legend.AlignColumns
getset

If the layout is horizontal and the legend itemsspan over two lines or more, whether to align the items into verticalcolumns. Setting this to false makes room for more items, but willlook more messy.

◆ BackgroundColor

string Highsoft.Web.Mvc.Charts.Legend.BackgroundColor
getset

The background color of the legend.

◆ BorderColor

string Highsoft.Web.Mvc.Charts.Legend.BorderColor
getset

The color of the drawn border around the legend.

◆ BorderRadius

double Highsoft.Web.Mvc.Charts.Legend.BorderRadius
getset

The border corner radius of the legend.

◆ BorderWidth

double Highsoft.Web.Mvc.Charts.Legend.BorderWidth
getset

The width of the drawn border around the legend.

◆ BubbleLegend

LegendBubbleLegend Highsoft.Web.Mvc.Charts.Legend.BubbleLegend
getset

The bubble legend is an additional element in legend whichpresents the scale of the bubble series. Individual bubble rangescan be defined by user or calculated from series. In the case ofautomatically calculated ranges, a 1px margin of error ispermitted.

◆ ClassName

string Highsoft.Web.Mvc.Charts.Legend.ClassName
getset

A CSS class name to apply to the legend group.

◆ Enabled

bool Highsoft.Web.Mvc.Charts.Legend.Enabled
getset

Enable or disable the legend. There is also a series-specific option,showInLegend, that can hide theseries from the legend. In some series types this is false bydefault, so it must set to true in order to show the legend for theseries.

◆ Floating

bool Highsoft.Web.Mvc.Charts.Legend.Floating
getset

When the legend is floating, the plot area ignores it and is allowedto be placed below it.

◆ ItemCheckboxStyle

Hashtable Highsoft.Web.Mvc.Charts.Legend.ItemCheckboxStyle
getset

Default styling for the checkbox next to a legend item whenshowCheckbox is true.

◆ ItemDistance

double Highsoft.Web.Mvc.Charts.Legend.ItemDistance
getset

In a legend with horizontal layout, the itemDistance defines thepixel distance between each item.

◆ ItemHiddenStyle

Hashtable Highsoft.Web.Mvc.Charts.Legend.ItemHiddenStyle
getset

CSS styles for each legend item when the corresponding series orpoint is hidden. Only a subset of CSS is supported, notably thoseoptions related to text. Properties are inherited from styleunless overridden here.

◆ ItemHoverStyle

Hashtable Highsoft.Web.Mvc.Charts.Legend.ItemHoverStyle
getset

CSS styles for each legend item in hover mode. Only a subset ofCSS is supported, notably those options related to text. Propertiesare inherited from style unless overridden here.

◆ ItemMarginBottom

double Highsoft.Web.Mvc.Charts.Legend.ItemMarginBottom
getset

The pixel bottom margin for each legend item.

◆ ItemMarginTop

double Highsoft.Web.Mvc.Charts.Legend.ItemMarginTop
getset

The pixel top margin for each legend item.

◆ ItemStyle

Hashtable Highsoft.Web.Mvc.Charts.Legend.ItemStyle
getset

CSS styles for each legend item. Only a subset of CSS is supported,notably those options related to text. The default textOverflowproperty makes long texts truncate. Set it to undefined to wraptext instead. A width property can be added to control the textwidth.

◆ ItemWidth

double Highsoft.Web.Mvc.Charts.Legend.ItemWidth
getset

The width for each legend item. By default the items are laid outsuccessively. In a horizontal layout, if the itemsare laid out across two rows or more, they will be vertically aligneddepending on the legend.alignColumns option.

◆ LabelFormat

string Highsoft.Web.Mvc.Charts.Legend.LabelFormat
getset

A format stringfor each legend label. Available variables relates to properties onthe series, or the point in case of pies.

◆ LabelFormatter

bool Highsoft.Web.Mvc.Charts.Legend.LabelFormatter
getset

Callback function to format each of the series' labels. The thiskeyword refers to the series object, or the point object in case ofpie charts. By default the series or point name is printed.

◆ Layout

LegendLayout Highsoft.Web.Mvc.Charts.Legend.Layout
getset

The layout of the legend items. Can be one of horizontal orvertical or proximate. When proximate, the legend items will beplaced as close as possible to the graphs they're representing,except in inverted charts or when the legend position doesn't allowit.

◆ LineHeight

double Highsoft.Web.Mvc.Charts.Legend.LineHeight
getset

Line height for the legend items. Deprecated as of 2.1. Instead,the line height for each item can be set usingitemStyle.lineHeight, and the padding between items usingitemMarginTop and itemMarginBottom.

◆ Margin

double Highsoft.Web.Mvc.Charts.Legend.Margin
getset

If the plot area sized is calculated automatically and the legend isnot floating, the legend margin is the space between the legend andthe axis labels or plot area.

◆ MaxHeight

double Highsoft.Web.Mvc.Charts.Legend.MaxHeight
getset

Maximum pixel height for the legend. When the maximum height isextended, navigation will show.

◆ Navigation

LegendNavigation Highsoft.Web.Mvc.Charts.Legend.Navigation
getset

Options for the paging or navigation appearing when the legend isoverflown. Navigation works well on screen, but not in staticexported images. One way of working around that is toincrease the chart height inexport.

◆ Padding

double Highsoft.Web.Mvc.Charts.Legend.Padding
getset

The inner padding of the legend box.

◆ Reversed

bool Highsoft.Web.Mvc.Charts.Legend.Reversed
getset

Whether to reverse the order of the legend items compared to theorder of the series or points as defined in the configuration object.

◆ Rtl

bool Highsoft.Web.Mvc.Charts.Legend.Rtl
getset

Whether to show the symbol on the right side of the text rather thanthe left side. This is common in Arabic and Hebrew.

◆ Shadow

Shadow Highsoft.Web.Mvc.Charts.Legend.Shadow
getset

Whether to apply a drop shadow to the legend. A backgroundColoralso needs to be applied for this to take effect. The shadow can bean object configuration containing color, offsetX, offsetY,opacity and width.

◆ SquareSymbol

bool Highsoft.Web.Mvc.Charts.Legend.SquareSymbol
getset

When this is true, the legend symbol width will be the same asthe symbol height, which in turn defaults to the font size of thelegend items.

◆ Style

Hashtable Highsoft.Web.Mvc.Charts.Legend.Style
getset

CSS styles for the legend area. In the 1.x versions the positionof the legend area was determined by CSS. In 2.x, the position isdetermined by properties like align, verticalAlign, x and y,but the styles are still parsed for backwards compatibility.

◆ SymbolHeight

double Highsoft.Web.Mvc.Charts.Legend.SymbolHeight
getset

The pixel height of the symbol for series types that use a rectanglein the legend. Defaults to the font size of legend items.Note: This option is a default source of color axis height, if thecolorAxis.heightoption is not set.

◆ SymbolPadding

double Highsoft.Web.Mvc.Charts.Legend.SymbolPadding
getset

The pixel padding between the legend item symbol and the legenditem text.

◆ SymbolRadius

double Highsoft.Web.Mvc.Charts.Legend.SymbolRadius
getset

The border radius of the symbol for series types that use a rectanglein the legend. Defaults to half the symbolHeight, effectivelycreating a circle.For color axis scales, it defaults to 3.

◆ SymbolWidth

double Highsoft.Web.Mvc.Charts.Legend.SymbolWidth
getset

The pixel width of the legend item symbol. When the squareSymboloption is set, this defaults to the symbolHeight, otherwise 16.Note: This option is a default source of color axis width, if thecolorAxis.widthoption is not set.

◆ Title

LegendTitle Highsoft.Web.Mvc.Charts.Legend.Title
getset

A title to be added on top of the legend.

◆ UseHTML

bool Highsoft.Web.Mvc.Charts.Legend.UseHTML
getset

Whether to use HTMLto render the legend item texts.Prior to 4.1.7, when using HTML, legend.navigation was disabled.

◆ ValueDecimals

double Highsoft.Web.Mvc.Charts.Legend.ValueDecimals
getset

For a color axis with data classes, how many decimals to render inthe legend. The default preserves the decimals of the range numbers.

◆ ValueSuffix

string Highsoft.Web.Mvc.Charts.Legend.ValueSuffix
getset

For a color axis with data classes, a suffix for the range numbers inthe legend.

◆ VerticalAlign

LegendVerticalAlign Highsoft.Web.Mvc.Charts.Legend.VerticalAlign
getset

The vertical alignment of the legend box. Can be one of top,middle or bottom. Vertical position can be further determinedby the y option.In the case that the legend is aligned in a corner position, thelayout option will determine whether to place it above/belowor on the side of the plot area.When the layout option is proximate, theverticalAlign option doesn't apply.

◆ Width

string Highsoft.Web.Mvc.Charts.Legend.Width
getset

The width of the legend box. If a number is set, it translates topixels. Since v7.0.2 it allows setting a percent string of the fullchart width, for example 40%.Defaults to the full chart width for legends below or above thechart, half the chart width for legends to the left and right.

◆ WidthNumber

double Highsoft.Web.Mvc.Charts.Legend.WidthNumber
getset

The width of the legend box. If a number is set, it translates topixels. Since v7.0.2 it allows setting a percent string of the fullchart width, for example 40%.Defaults to the full chart width for legends below or above thechart, half the chart width for legends to the left and right.

◆ X

double Highsoft.Web.Mvc.Charts.Legend.X
getset

The x offset of the legend relative to its horizontal alignmentalign within chart.spacingLeft and chart.spacingRight. Negativex moves it to the left, positive x moves it to the right.

◆ Y

double Highsoft.Web.Mvc.Charts.Legend.Y
getset

The vertical offset of the legend relative to it's vertical alignmentverticalAlign within chart.spacingTop and chart.spacingBottom. Negative y moves it up, positive y moves it down.


The documentation for this class was generated from the following file: