ChartDirector 5.1 (.NET Edition)

WebHotSpotEventArgs


WebHotSpotEventArgs is used in WebChartViewer.ClickHotSpot events to represent attributes associated with the hot spot. These attributes come from query parameters in the image map that defines the hot spot.

For example, suppose the query parameters for the hot spot is:

x=0&xLabel=Mon&dataSet=0&dataSetName=Revenue&value=100

The WebHotSpotEventArgs object will contain the following attributes.

AttributeValue
x0
xLabelMon
dataSet0
dataSetNameRevenue
value100

If there are two attributes with the same name in the query parameters, they will be merged into one attribute, with the values appended together, delimited using the ASCII unit separator character (ASCII code 31).

In addition to the query parameters attributes, the WebChartViewer.GetPostBackURL can also introduce an additional attribute "cookie" into the table.

Properties
NameDescription
ItemGets or sets the value of the specified attribute. In C#, this property is the indexer of the class.
AttrValuesGets a Hashtable containing all attributes and values associated with the hot spot.