ChartLegendSettingsTagHelper

Example

Razor
<chart-legend>
    <border />
    <inactive-items></inactive-items>
    <item></item>
    <labels></labels>
    <margin />
    <padding />
    <title />
</chart-legend>

ChildTags

Attributes

AttributeTypeDescription
alignChartLegendAlignSpecifies the legend align.
backgroundStringThe background color of the legend. Accepts a valid CSS color string, including hex and rgb.
heightDoubleThe legend height when the legend.orientation is set to "vertical".
offset-xDoubleThe X offset of the chart legend. The offset is relative to the default position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of its initial position. A negative value will move the legend to the left of its current position.
offset-yDoubleThe Y offset of the chart legend. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from its initial position. A negative value will move the legend upwards from its current position.
orientationChartLegendOrientationSpecifies the legend orientation.
positionChartLegendPositionSpecifies the legend position.
reverseBooleanIf set to true the legend items will be reversed.Available in versions 2013.3.1306 and later.
spacingDoubleThe spacing between the labels in pixels when the legend.orientation is "horizontal".
visibleBooleanIf set to true the chart will display the legend. By default the chart legend is visible.
widthDoubleThe legend width when the legend.orientation is set to "horizontal".
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support