C#Windows应用程序中的MS图表工具提示 [英] MS Chart Tool Tip in C# windows application
本文介绍了C#Windows应用程序中的MS图表工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用MS图表,我需要在工具提示中显示日期以及时间.
当我将鼠标置于图表系列中时,我需要显示一个系列的日期和另一个系列的时间
此致
karthick
Hi,
I am using MS chart i need to show the Date in tool tip and also Time .
While i am place the mouse in Chart series i need show the date for one series and time for another series
Regards,
karthick
推荐答案
,您可以像这样使用char的tooltip属性:
you can use tooltip property of your char like this:
chart.Series["yourSeriesName".ToolTip = " #VALY{d}";
您必须设置X,Y系列值.
对于两个系列,必须在工具提示值中编写另一个参数,例如:
you must set X,Y series value.
for two series you must write another parameter in tooltip value,like this:
chart.Series["yourSeriesName".ToolTip = " #VALX{d},#VALY{d}";
这篇关于C#Windows应用程序中的MS图表工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文