显示工具提示的asp.net MS图表控件 [英] Showing tooltip on asp.net MS chart controls

查看:90
本文介绍了显示工具提示的asp.net MS图表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Asp.net图表控件,以显示图表。我有一个数据表,我敢直接绑定到这样的控件:

I'm using Asp.net chart controls in order to display charts. I have a datatable which I'm directly binding to the control like this:

Chart1.DataSource = dtChart;
Chart1.DataBind();

现在,我想知道,当鼠标悬停在图表中的每个数据点我可以如何显示工具提示。

Now, I would like to know how I can display a tooltip when mouse is hovered over each data points in the chart.

先谢谢了。

推荐答案

您可以设置提示有喜欢该系列等等。

You can set the tooltip in the Series like so.

<&系列GT;
        系列图表类型=线NAME =SERIESNAME工具提示=X价值::Y #VALY的#VALY价值ASP;其中p>
        < / ASP:系列>
    < /系列>

这将显示x和y点的值,当你在它的鼠标。

This will show the values of the x and Y point when you mouse over it.

这篇关于显示工具提示的asp.net MS图表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆