开发者

ASP.NET Chart: ToolTips on X and Y axis labels?

Is it possible t开发者_JAVA百科o 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.


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.


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> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜