Gets or Sets the contents of the element's label. LabelText is applicable for DataPoint, DataSeries and TrendLine elements. Modifiers can be used in the text to get DataPoint specific Labels if LabelText is set in DataSeries or DataPoint.
Type: String
Namespace: Visifire.Charts
Assembly:
|
Silverlight: |
SLVisifire.Charts (in SLVisifire.Charts.dll) |
|
WPF: |
WPFVisifire.Charts (in WPFVisifire.Charts.dll) |
This attribute applies to:
Syntax:
<vc:Chart ... >
<vc:Chart.Series>
<vc:DataSeries>
<vc:DataSeries.DataPoints>
<vc:DataPoint LabelText="#AxisXLabel, #YValue" />
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
Below is the chart after setting LabelText property:

Modifiers:
|
Modifier |
Description |
|
#AxisXLabel |
Returns the axis label value if axis labels is present for that XValue. Otherwise returns XValue. |
|
#Percentage |
Returns the percentage value with respect to DataPoints in that series. |
|
#Series |
Returns the series name. |
|
#Sum |
Returns sum of values in entire chart with same XValue. (Used for stacked charts only) |
|
#XValue |
Returns XValue. |
|
#YValue |
Returns YValue. |
|
#ZValue |
Returns ZValue. |
|
#Open |
Returns Open value. |
|
#Close |
Returns Close value. |
|
#High |
Returns High value. |
|
#Low |
Returns Low value. |
Remarks:
The above modifiers are applicable for LabelText set in DataPoint or DataSeries only.
Modifiers can be used in any combination to display DataPoint specific content.
To display the modifier itself use the '#' twice. For example to display "#XValue" as label use LabelText="##XValue"
The default value for LabelText in Pie/Doughnut and Funnel charts is "AxisXLabel, #YValue".
The default value for LabelText in CandleStick and Stock charts is "#Close".
The default value for LabelText in all other charts is "#YValue".
For CandleStick and Stock charts, LabelText can be set as LabelText="#Open, #Close, #High, #Low, #YValue". For CandleStick and Stock charts, volume information can be stored in YValue property and can be showed as a LabelText for DataPoints. Note that YValue property is not being used in CandleStick and Stock charts.
For Stacked charts, percentage will be calculated from the DataPoints present in each XValue. In other words, percentage will be calculated for stacked DataPoints (in each XValue) from all series.
For CandleStick and Stock charts, percentage will be calculated for Closing price in DataPoints.