6

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 would like to know how I can display a tooltip when mouse is hovered over each data points in the chart.

Thanks in advance.

1 Answer 1

11

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.

Sign up to request clarification or add additional context in comments.

1 Comment

"Value of X" should be #VALX and not #VALY, but otherwise this works great.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.