Is it possible to set a ToolTip on the X and Y Axis labels on a databound chart? ToolTip exists in AxisY.CustomLabels, but I'm not sure how to make this work, or if there is an easier way.
Asked
Active
Viewed 8,334 times
2 Answers
7
Yes you can,
to show tooltip on X-Axis
Chart1.Series["SeriesName"].LabelToolTip = "#VALX [#VALY]";
and on the Y-Axis
Chart1.Series["SeriesName"].ToolTip = "#VALX [#VALY]";
VALX --> X-axis value VALY --> Y-axis value there are many as well like "#PERCENT" "#AVG" etc etc
you can put anyother tooltip as you like.

Kamran Pervaiz
- 1,861
- 4
- 22
- 42
1
if you hover X and Y Axis labels you can see the x-axis value and y-axis value at the tool tip.
<Series>
<asp:Series Name="Series1" ToolTip="#VALX(#VALY)"" >
</asp:Series>
</Series>

sam
- 54
- 7