Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
Add Tooltips to xamDataChart series runtime
posted

Hi, How do I set tooltips to xamDataChart series from example "Data Selector with no grid" located in xamPivotGrid -> Scenarios? 

Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    Here's an example of creating a tooltip at runtime and assigning it to a series:

    var tb = new TextBlock(); 
    tb.SetBinding(TextBlock.TextProperty, new Binding("Item.Value"));
    series1.ToolTip = tb;
    

    This assumes that your items have a property called Value and that you want to display this in a textblock in the tooltip.

    Hope this helps!

    -Graham

Children