Home Forums WinForms controls Xceed Chart for WinForms Tooltips for Bar graphs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18747 |

    Hi all,

    I was hoping someone could explain how I can add tooltips to individual bars to show their exact value when the user mouses over them? Any help is appreciated.

    Thanks,
    Todd

    Imported from legacy forums. Posted by Todd (had 2441 views)

    User (Old forums)
    Member
    Post count: 23064

    You can do the following :

    private void Form1_Load(object sender, System.EventArgs e)
    {
    Chart chart = chartControl1.Charts[ 0 ];

    TooltipInteractivityOperation tooltip = new TooltipInteractivityOperation();
    tooltip.InitialDelay = 250;
    tooltip.AutoPopDelay = 3000;
    chartControl1.InteractivityOperations.Add(tooltip);

    bar = ( BarSeries )chart.Series.Add( SeriesType.Bar );

    bar.Interactivity.TooltipMode = SeriesTooltipMode.Formatted;
    bar.Interactivity.TooltipFormat = “<label> <index>”;
    }

    Imported from legacy forums. Posted by André (had 3082 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.