开发者

Showing tooltip on asp.net MS chart controls

开发者 https://www.devze.com 2023-04-04 07:07 出处:网络
I\'m using Asp.net chart controls in order to display charts. I have a datatable which I\'m directly binding to the control like this:

I'm using Asp.net chart controls in order to display charts. I have a datatable which I'm directly binding to the control like this:

Chart1.DataSource = dtChart;
Chart1.DataBind();

Now, I wo开发者_Go百科uld like to know how I can display a tooltip when mouse is hovered over each data points in the chart.

Thanks in advance.


You can set the tooltip in the Series like so:

<Series>
    <asp:Series ChartType="Line" Name="SeriesName" ToolTip="Value of X: #VALX Value of Y #VALY" >
    </asp:Series>
</Series>

This will show the values of the X and Y point when you mouse over it.

0

精彩评论

暂无评论...
验证码 换一张
取 消