Hi!
I am using XamWebChart of Line chart type. I had added datapoint in the code behind and also added marker in the code behind. The tool tip does not show up on mouse over. Can you please suggest.
Thanks and regards,
Usha,
Not sure why you're not seeing the tooltip, I wasn't able to reproduce that behavior. Here's the code I used. I can see the tooltip when I hover over either marker.
<igChart:XamWebChart Name="chart"> <igChart:XamWebChart.Series> <igChart:Series ChartType="Line"/> </igChart:XamWebChart.Series></igChart:XamWebChart>
Series s = chart.Series[0];s.Marker = new Marker();s.DataPoints.Add(new DataPoint() { Value = 5, ToolTip = 5 });s.DataPoints.Add(new DataPoint() { Value = 7, ToolTip = 9 });
Hi! Max,
Thanks for your reply. I checked afterwards and you are correct. But I have one requirenment where I have to show each datapoint as the tooltip on that point. When I give a static text to the Tooltip it is working like say "This is tooltip1" etc. From one of the posts in your site I got this code as
foreach (DataPoint point in Series1.DataPoints) {
point.ToolTip = new TextBlock() { Text = point.Value.ToString("0:c"
) };
But this is not working. Is there any other way of doing it. Thanks for your help.
Usha.
This is a bug. I've entered it in our bug tracking system and fixed it. The fix will be available in the next service release. The bug number is 21980 should you need to inquire of its status with developer support.