ToolTipText

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

#YValue

Returns YValue

DataPoint, DataSeries

#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)

Windows Phone:

SLWpVisifire.Charts (in SLWpVisifire.Charts.dll)

Windows 8:

Win8Visifire.Charts (in Win8Visifire.Charts.dll)

 

This attribute applies to:

 

Visifire Elements

Modifiers Applicable

Axis

cross.gif

Chart

cross.gif

DataPoint

tick.gif

DataSeries

tick.gif

LightDataPoint

tick.gif

Legend

cross.gif

PlotArea

cross.gif

Title

cross.gif

TrendLine

cross.gif

 

 

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.

 

tooltiptext.jpg

 

Remarks:

  1. 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.

  2. For CandleStick and Stock charts, percentage will be calculated for Closing price in DataPoints.