This is a migrated thread and some comments may be shown as answers.

Radchart - Item tool tip format help

2 Answers 79 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Yathish
Top achievements
Rank 1
Yathish asked on 11 Jan 2012, 12:55 PM
Hi,

Attached is the radchart i am working on. As of now when i point on the line series graph (the graph in orange color) - it displayes the y-axis value. For example it highlights 75 in the attached screen shot.

In my case, i need to just append a text to that value, say "marks=75". How to achieve this?

Can you please share your valuable inputs.

Thanks & Regards,
YK

2 Answers, 1 is accepted

Sort by
0
Accepted
Rahul
Top achievements
Rank 2
answered on 11 Jan 2012, 01:53 PM
Hi Yathish,

          You can modify tooltips in many ways.
First register this event for chart.
radChart.DefaultView.ChartArea.ItemToolTipOpening += new ItemToolTipEventHandler(ChartArea_ItemToolTipOpening);

then inside event put your formatting
void ChartArea_ItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs e)
{
            string strMarks = "Marks : " + e.DataPoint.YValue.ToString();
 
            tooltip.Content = strMarks;
}

Hope it will help you.


Regards
Rahul
0
Yathish
Top achievements
Rank 1
answered on 12 Jan 2012, 06:32 AM
Thanks Rahul.

Regards,
YK
Tags
Chart
Asked by
Yathish
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Yathish
Top achievements
Rank 1
Share this question
or