工具提示图控件 [英] Tooltip Chart Control

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

问题描述

大家好,

如何使用工具提示在图形中显示点的值(在数据库表中标出的值和对应的值).

到目前为止,我有这个:

Hi All,

How do you display values(plotted and corresponding values in the databasetable) of the point in a graph using Tooltip.

I have this so far:

chart1.DataSource = chartdata;
                      chart1.Series[0].YValueMembers = "LFDepartTemp";
                      chart1.Series[0].ToolTip = "Temp: #VALY{} C" ;



但这只是显示y值.我希望它显示我的数据集中的附加信息.作为示例,请看以下内容:


http://documentation.devexpress.com/#XtraCharts/CustomDocument3440 [



But that just shows the y-value. i want it to show addition information from my dataset. As an example look at this:


http://documentation.devexpress.com/#XtraCharts/CustomDocument3440[^]

but of course without using their product.

Thanks,
Nicole

推荐答案

尝试#VALX获取x值,如果它不起作用,请尝试#AXISLABEL.
Try #VALX for getting x value & if it is not working try for #AXISLABEL.


您好,
试试下面的表达式
Hi,
Try the below expression
报价:

字符串工具提示="title =''{dataSetName}''dvalue =''{value | 0}''";

string toolTip = "title=''{dataSetName}'' dvalue=''{value|0}''";


其中dataSetname表示第三个值,而Value | 0表示y-Value

谢谢
墙贴


where dataSetname indicates the 3rd value and Value|0 indicated the y-Value

Thanks
Wall Stickers


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

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