在Visual Studio 2010中使用mscharts的问题

在Visual Studio 2010中使用mscharts的问题

问题描述:


我正在使用Visual Studio图表控件n尝试实现工具提示下钻(图表扇区工具提示中的新图表).
当我将鼠标悬停在特定图表扇区上时,出现jscript错误:预期对象;
可能有什么问题..

事先感谢与问候

hi there,
i''m using visual studio charts control n trying to implement a tooltip drill down(a new chart in tool tip of chart sector).
When i hover mouse over a particular chart sector there is a jscript error:object expected;
what can be possible problems..

thanks & regards in advance

使用可以使用内置的工具提示功能,并在为MS Chart设计的页面上使用ScriptManager


use can use inbuilt Tool tip felicity, and use ScriptManager on the page where you have designed for the MS Chart


<asp:Chart ID="chtProducts" runat="server" ...>
   <Series>
      <asp:Series Name="SalesByMonth" ChartType="Column" BorderWidth="5"

         ToolTip="#VALX{d}, #VALY{d}"

         ChartArea="MainChartArea"

         YValueMembers="Total"

         XValueMember="Month"

         PostBackValue="#VALX" />
   </Series>

   <ChartAreas>
      ...
   </ChartAreas>
</asp:Chart>