ToolTipText property of a Chart element can be null or a string that can contain modifiers as in the given list below which can be used to get various values from the element.
|
Modifier |
Significance |
Elements |
|
#XValue |
Returns XValue |
DataPoint, DataSeries, TrendLine |
|
#YValue |
Returns YValue |
DataPoint, DataSeries, TrendLine |
|
#ZValue |
Returns ZValue |
DataPoint, DataSeries |
|
#Sum |
Returns sum of values in entire chart with same XValue. (Used for stacked charts only) |
DataPoint, DataSeries |
|
#Percentage |
Returns the percentage value for with respect to other elements in that series. |
DataPoint, DataSeries |
|
#Series |
Returns the series name |
DataPoint, DataSeries |
|
#AxisXLabel |
Returns the axis label value if axis labels is present for that XValue. Otherwise returns XValue. |
DataPoint, DataSeries |
|
#Open |
Returns Open value if Open value is present in a DataPoint's YValues property. |
DataPoint, DataSeries |
|
#Close |
Returns Close value if Close value is present in a DataPoint's YValues property. |
DataPoint, DataSeries |
|
#High |
Returns High value if High value is present in a DataPoint's YValues property. |
DataPoint, DataSeries |
|
#Low |
Returns Low value if Low value is present in a DataPoint's YValues property. |
DataPoint, DataSeries |
ToolTip text can be constructed as given below:
ToolTipText="{x:Null}"
or
ToolTipText="Year: #XValue, Gross: #YValue"
or
ToolTipText="Visifire"
or
ToolTipText="#Open, #Close, #High, #Low, #YValue" (For CandleStick and Stock charts, volume information can be stored in YValue property and can be showed as a ToolTip for DataPoints. Note that YValue property is not being used in CandleStick and Stock charts).
Note: If a modifier is not applicable to an element then it displays as it is.
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 ToolTipText="#AxisXLabel, #YValue">
<vc:DataSeries.DataPoints>
<vc:DataPoint ToolTipText="{x:Null}"/>
.
.
</vc:DataSeries.DataPoints>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>
Below is the chart after setting ToolTipText property in DataSeries.

Remarks:
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.