Package io.jmix.charts.model.stock
Class StockLegend
- All Implemented Interfaces:
HasMargins<AbstractLegend>
,Serializable
StockLegend is a legend of
See documentation for properties of StockLegend JS object.
http://docs.amcharts.com/3/javascriptstockchart/StockLegend
StockPanel
.
See documentation for properties of StockLegend JS object.
http://docs.amcharts.com/3/javascriptstockchart/StockLegend
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetPeriodValueTextComparing
(String periodValueTextComparing) Sets the text which will be displayed in the value portion of the legend when user is not hovering above any data point and the data sets are compared.setPeriodValueTextRegular
(String periodValueTextRegular) Sets the text which will be displayed in the value portion of the legend when user is not hovering above any data point.setValueTextComparing
(String valueTextComparing) Sets the text which will be displayed in the value portion of the legend when graph is comparable and at least one data set is selected for comparing.setValueTextRegular
(String valueTextRegular) Sets the text which will be displayed in the value portion of the legend.Methods inherited from class io.jmix.charts.model.legend.AbstractLegend
addItems, getAccessibleLabel, getAlign, getAutoMargins, getBackgroundAlpha, getBackgroundColor, getBorderAlpha, getBorderColor, getBottom, getColor, getCombineLegend, getData, getDivId, getEnabled, getEqualWidths, getFontSize, getForceWidth, getGradientRotation, getHorizontalGap, getLabelText, getLabelWidth, getLeft, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarkerBorderAlpha, getMarkerBorderColor, getMarkerBorderThickness, getMarkerDisabledColor, getMarkerLabelGap, getMarkerSize, getMarkerType, getMaxColumns, getPeriodValueText, getPosition, getReversedOrder, getRight, getRollOverColor, getRollOverGraphAlpha, getShowEntries, getSpacing, getSwitchable, getSwitchColor, getSwitchType, getTabIndex, getTextClickEnabled, getTop, getUseGraphSettings, getUseMarkerColorForLabels, getUseMarkerColorForValues, getValueAlign, getValueFunction, getValueText, getValueWidth, getVerticalGap, getWidth, setAccessibleLabel, setAlign, setAutoMargins, setBackgroundAlpha, setBackgroundColor, setBorderAlpha, setBorderColor, setBottom, setColor, setCombineLegend, setData, setDivId, setEnabled, setEqualWidths, setFontSize, setForceWidth, setGradientRotation, setHorizontalGap, setLabelText, setLabelWidth, setLeft, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarkerBorderAlpha, setMarkerBorderColor, setMarkerBorderThickness, setMarkerDisabledColor, setMarkerLabelGap, setMarkerSize, setMarkerType, setMaxColumns, setPeriodValueText, setPosition, setReversedOrder, setRight, setRollOverColor, setRollOverGraphAlpha, setShowEntries, setSpacing, setSwitchable, setSwitchColor, setSwitchType, setTabIndex, setTextClickEnabled, setTop, setUseGraphSettings, setUseMarkerColorForLabels, setUseMarkerColorForValues, setValueAlign, setValueFunction, setValueText, setValueWidth, setVerticalGap, setWidth
-
Constructor Details
-
StockLegend
public StockLegend()
-
-
Method Details
-
getPeriodValueTextComparing
- Returns:
- period value text comparing
-
setPeriodValueTextComparing
Sets the text which will be displayed in the value portion of the legend when user is not hovering above any data point and the data sets are compared. The tags should be made out of two parts - the name of a field (value / open / close / high / low) and the value of the period you want to be show - open / close / high / low / sum / average / count. For example: [[value.sum]] means that sum of all data points of value field in the selected period will be displayed. In case you want to display percent values, you should add "percent" string in front of a tag, for example: [[percents.value.close]] means that last percent value of a period will be displayed.- Parameters:
periodValueTextComparing
- period value text comparing- Returns:
- stock legend
-
getPeriodValueTextRegular
- Returns:
- period value text regular
-
setPeriodValueTextRegular
Sets the text which will be displayed in the value portion of the legend when user is not hovering above any data point. The tags should be made out of two parts - the name of a field (value / open / close / high / low) and the value of the period you want to be show - open / close / high / low / sum / average / count. For example: [[value.sum]] means that sum of all data points of value field in the selected period will be displayed.- Parameters:
periodValueTextRegular
- period value text regular- Returns:
- stock legend
-
getValueTextComparing
- Returns:
- value text comparing
-
setValueTextComparing
@StudioProperty(defaultValue="[[percents.value]]%") public StockLegend setValueTextComparing(String valueTextComparing) Sets the text which will be displayed in the value portion of the legend when graph is comparable and at least one data set is selected for comparing. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents.value/open/close/low/high]], [[description]]. If not set the default value is "[[percents.value]]%".- Parameters:
valueTextComparing
- value text comparing- Returns:
- stock legend
-
getValueTextRegular
- Returns:
- value text regular
-
setValueTextRegular
@StudioProperty(defaultValue="[[value]]") public StockLegend setValueTextRegular(String valueTextRegular) Sets the text which will be displayed in the value portion of the legend. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. If not set the default value is "[[value]]".- Parameters:
valueTextRegular
- value text regular- Returns:
- stock legend
-