Showing tooltip on asp.net MS chart controls

I am using Asp.net chart controls to display charts. I have a datatable that I directly bind to the control as follows:

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

Now I would like to know how I can display a tooltip when the mouse hovers over each data point in the chart.

Thanks in advance.

+5
source share
1 answer

You can set the tooltip in a series like this:

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

This displays the values โ€‹โ€‹of the X and Y points when you hover over it.

+10
source

All Articles