Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

How do you display values(plotted and corresponding values in the databasetable) of the point in a graph using Tooltip.

I have this so far:
C#
chart1.DataSource = chartdata;
                      chart1.Series[0].YValueMembers = "LFDepartTemp";
                      chart1.Series[0].ToolTip = "Temp: #VALY{} C" ;


But that just shows the y-value. i want it to show addition information from my dataset. As an example look at this:


http://documentation.devexpress.com/#XtraCharts/CustomDocument3440[^]

but of course without using their product.

Thanks,
Nicole
Posted
Updated 1-Jul-12 22:58pm
v4
Comments
Herman<T>.Instance 29-Jun-12 5:36am    
does the tooltip not only work when moving the mouse over?
nikki88 29-Jun-12 5:42am    
yes it shows when mouse cursor moves over a datapoint.

1 solution

Try #VALX for getting x value & if it is not working try for #AXISLABEL.
 
Share this answer
 
Comments
nikki88 29-Jun-12 7:49am    
Thank you it works, but i also want to add another columns data to the tooltip, not JUST x values and y values.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900