鼠标悬停时弹出的折线图 [英] line chart with popup when mouse over

查看:81
本文介绍了鼠标悬停时弹出的折线图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


嗨我需要在项目中绘制一个与剖面页面完全相同的折线图 

hi i need to draw a line chart in my project which is exactly same as in the profile page 


http://social.msdn.microsoft.com/profile/alex%20gorev/?ws=usercard-mini  上标有
的标记。  ;

http://social.msdn.microsoft.com/profile/alex%20gorev/?ws=usercard-mini with the markers on it. 


当我将鼠标放在标记上时,我应该弹出这个图表中的弹出窗口。

and when ever i place my mouse over the markup i should get the pop up as it is in this chart.


我必须只使用MsChart控件。没有sharepoint或任何其他。请帮助我

I have to  use MsChart control only. No sharepoint or any other else. Please help me


提前谢谢


shashi

shashi

推荐答案

根据您的要求,您必须创建自定义工具提示文本。以下代码:

For your requirement you will have to create the custom tooltip text. Use this code below:

创建自定义工具提示文本的代码:

Code to create a custom tooltip text:

Chart1.Series["Series1"].Points[i].ToolTip = "520 \n 4/20/2012";




在折线图上使用标记的代码将图像设置为aspx页面中的标记:

code to use markers on the line chart set the image as a marker in aspx page:

<series>
  <asp:Series ChartArea="Area1" Name="Series1" ChartType="Line" MarkerImage="Images/image.gif" MarkerSize="1"   
       IsValueShownAsLabel="false" Font="Trebuchet MS, 8.25pt, style=Bold" >
  </asp:Series>
</series>

希望这有帮助,

谢谢,


这篇关于鼠标悬停时弹出的折线图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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