Radchart - Item tool tip format help

3 posts, 1 answers
  1. Yathish
    Yathish avatar
    9 posts
    Member since:
    Dec 2011

    Posted 11 Jan 2012 Link to this post

    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. Answer
    Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 11 Jan 2012 Link to this post

    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
  3. DevCraft banner
  4. Yathish
    Yathish avatar
    9 posts
    Member since:
    Dec 2011

    Posted 12 Jan 2012 Link to this post

    Thanks Rahul.

    Regards,
    YK
Back to Top