LegendItem.ToolTip Property

.NET Framework (current version)
 

Gets or sets the tooltip of the legend item.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[<BindableAttribute(true)>]
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
abstract ToolTip : string with get, set
[<BindableAttribute(true)>]
[<PersistenceModeAttribute(PersistenceMode.Attribute)>]
override ToolTip : string with get, set

Property Value

Type: System.String

A string value that represents the tooltip for the legend item.

If you set the ToolTip property, a client-side image map will automatically be created. A map area will also be created with its Title attribute set to the specified tooltip string. The map area will use the dimensions that correspond to the title. For example, if the ToolTip property is set for a data point, then HTML code similar to the following will be generated at run time:

<MAP NAME="Chart1ImageMap"><AREA SHAPE="rect" Title="First Data Value = 19" COORDS="69,120,106,309"></MAP>

Setting this property will have no effect if the IsMapEnabled property is set to false. The default value is true.

Important   To create an image map in this manner, the RenderType property of the Chart object must be set to ImageTag. It is possible to create an image map when using binary streaming, but another technique must be used. For more information, see Chart Image Rendering.

This property allows you to set special keywords to display different types of chart-related data. For more information, see Keywords.

To create image maps that have user-defined coordinates, use the MapAreas property of the root Chart object.

System_CAPS_noteNote

This property is applicable to the entire LegendItem.

.NET Framework
Available since 4.0
Return to top
Show: