LegendSettings
Type class
Common settings of legends. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of StockLegend class will be used.
Sources
This information about LegendSettings is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
LegendSettings does not extend any other symbol.
LegendSettings is not extended by any other symbol.
Properties
alignType
stringDefaultAlignment of legend entries. Possible values are: "left", "right" and "center".
equalWidthsType
booleanDefaultfalseSpecifies if each legend entry should take the same space as the longest legend entry.
horizontalGapType
numberDefaultHorizontal space between legend item and left/right border.
labelTextType
stringDefaultThe text which will be displayed in the legend. Tag
titlewill be replaced with the title of the graph.marginBottomType
numberDefault0Space below the last row of the legend, in pixels.
marginTopType
numberDefault0Space above the first row of the legend, in pixels.
markerBorderAlphaType
numberDefaultOpacity of marker border.
markerBorderColorType
stringDefaultMarker border color.
markerBorderThicknessType
numberDefaultThickness of the legend border.
markerDisabledColorType
stringDefaultThe color of the disabled marker (when the graph is hidden).
markerLabelGapType
numberDefaultSpace between legend marker and legend text, in pixels.
markerSizeType
numberDefaultSize of the legend marker (key).
markerTypeType
stringDefaultShape of the legend marker (key). Possible values are: "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble", "none".
reversedOrderType
booleanDefaultSpecifies whether legend entries should be placed in reversed order.
rollOverColorType
stringDefaultLegend item text color on roll-over.
rollOverGraphAlphaType
numberDefaultWhen you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished. This property specifies the opacity of the graphs.
switchableType
booleanDefaultWhether showing/hiding of graphs by clicking on the legend marker is enabled or not.
switchColorType
stringDefaultLegend switch color.
switchTypeType
stringDefaultLegend switch type (in case the legend is switchable). Possible values are: "x" and "v".
textClickEnabledType
booleanDefaultfalseSpecifies whether the legend text is clickable or not. Clicking on legend text can show/hide value balloons if they are enabled.
useMarkerColorForLabelsType
booleanDefaultSpecifies if legend labels should be use same color as corresponding markers.
valueTextComparingType
stringDefaultThe text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing. You can use tags like
value,open,high,low,close,percents,description.valueTextRegularType
stringDefaultThe text which will be displayed in the value portion of the legend. You can use tags like
value,open,high,low,close,percents,description.valueWidthType
numberDefaultWidth of the value text. Increase this value if your values do not fit in the allocated space.
verticalGapType
numberDefaultVertical space between legend items, in pixels.
Methods
LegendSettings does not have any methods.
Events
LegendSettings does not have any events.