的MSChart / Asp.net图表不显示工具提示 [英] MSChart / Asp.net Charts dont show tooltips
问题描述
我遇到了一个问题,也会AP preciate一些帮助。我有一个仪表板页面中,我使用各种MSCharts。
I am running into a problem and would appreciate some help with. I have a dashboard page in which I am using various MSCharts.
我对这些图表,其中我该图表就像我在运行时低于定义工具提示OFR系列中的每一个定义的类通过
I have a class defined for each one of these charts, in which I am defining Tooltips ofr the Series in that chart like below when I run through
每个图表类并定义其系列属性。
each chart class and define its Series properties.
Series[0].ToolTip = "Date = #VALX{d}\nTotal Qty Shipped = #VALY";
问题眼见林是因为有在页面上多个图表。每个国家都有它自己的图表区域,无论是第一个图表
The problem Im seeing is because there are multiple charts on the page. Each with its own chart area, whatever is the first chart that
我分配工具提示,这就是显示工具提示只图?其他的人不表明尽管类似code运行他们任何东西。林不知道为什么其他的不显示工具提示?如果有人有什么的原因以及如何解决这个问题,请让我知道一个想法,你的帮助会很大AP preciated !!
I assign the tooltips to, thats the only chart that shows the tooltips?? the other ones dont show anything even though similar code is run for them. Im not sure why the other ones dont show the tooltips? If someone has an idea of whats the cause and how to get around this please let me know, your help would be greatly appreciated!!
感谢
推荐答案
我发现这个问题,我注意到在注视HTML生成的每个图表有
只是,没有分配的ID呈现的图表图像。即使我给了排行榜ASPX页面的ID,我使用的是用户控件类的属性来传递和ID没有被后端分配。一旦我这样做,后面( Chart.ID =ChartName
)的code和建造它的工具提示开始出现为每个图表。希望帮助别人出wasnt明显搞清楚!
I found the issue, I noticed while looking at the HTML generated that for each chart there
was just a chart Image rendered with no ID assigned. Even though I had given the charts an ID in the ASPX page, I was using a User control class to pass in the properties and the ID was not being assigned on the back end. once I did that in the code behind (Chart.ID = "ChartName"
) and built it the Tooltips started showing up for each individual chart. Hope that helps someone else out that wasnt obvious to figure out!
这篇关于的MSChart / Asp.net图表不显示工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!