Tooltips for WinForms FPChart?

Posted by: nathanhanson on 8 September 2017, 6:26 am EST

  • Posted 8 September 2017, 6:26 am EST

    Hi all,

    The FPChart, in the installed samples, shows tooltips when the user hovers the mouse over data points in a series. The tooltip shows the series name, and the data value at that point. It’s really nice, looking and I want to use that feature. But I can’t find anywhere in the documentation that shows how to turn the feature on.

    Am I missing something obvious? I’d appreciate your insight on this. I’ve scoured the help and samples and can’t find an answer.

    Thanks!

    Nathan Hanson

    UX Software Engineer

    EPIS, LLC

  • Posted 8 September 2017, 6:26 am EST

    Hi Nathan,

    The property you’re looking for is AutoGenerateMapAreaTooltip (sorry it’s hard to find!) – there’s a code example there to help.

    Regards,

    -Sean

  • Posted 8 September 2017, 6:26 am EST

    Hi Sean,

    I appreciate your response. AutoGenerateMapAreaTooltip appears to be available on the ASP.NET chart but I can’t seem to find a corresponding property by that name on the WinForms chart. Is it named something else?

    Thanks!

    Nate

  • Posted 8 September 2017, 6:26 am EST

    Hi,

    The Windows Forms control should show tooltips when the mouse hovers over a data point in a series without having to set any property. The control must have focus and the chart must be active for the tooltips to show (e.g. the user must click the chart first).

    Regards,

    -Sean

  • Posted 8 September 2017, 6:26 am EST

    I was afraid of that. I’m not seeing tooltips even under the conditions you mention above. I’m wondering if it’s due to the way I’m using the WinForms FPChart control. I’m building a WPF application. And since you don’t provide a standalone chart control for WPF, I’m trying to get the WinForms one to work. And it works pretty well except for the missing tooltips. So I guess I have two questions now:

    • What time frame is there for releasing a standalone WPF FPChart control?

    • If I build you a simple example of the WinForms FPChart being hosted in WPF, can someone help me find out why the tooltips don’t display?

    I really appreciate your help!

    Nate

  • Posted 8 September 2017, 6:26 am EST

    Did I drive everyone off with those last two questions? I’d really appreciate your help in getting tooltips working in my application. Thanks!

  • Posted 8 September 2017, 6:26 am EST

    Hello,

    Sorry for not getting back to you sooner.

    1. I will confirm it from the developer and inform you about the future plan of FpChart for WPF. As of now I do not have any information to share with you. Request id for this is #243668
    2. When you are using a Windows Forms control in WPF environment, I don’t think that all interactive events fire for that control.

      Also the control must be on ActiveForm as mentioned by Sean in his post. I believe the tooltip logic fails when you try to use the FpChart inside a WindowsFormsHost in a WPF application.

      You can still send your application and I will see if we can find a workaround/solution for the same.

    Thanks,

    Deepak Sharma

  • Posted 8 September 2017, 6:26 am EST

    Thanks, Deepak! I appreciate the info. I’ve learned a little bit about the difficulties of making WinForms controls work well in a WPF WindowsFormsHost from some of the other legacy things I have to support. I know it’s not easy. I’ve built a simple test app that shows the behavior I’m seeing. I hope it will be helpful it tracking down why the tooltips don’t show up. I’ll attach it to this post. Thanks!

    2017/08/FPChartTest.zip

  • Posted 8 September 2017, 6:26 am EST

    Hello,

    Thank you for providing me the sample application. We are investigating this issue further, I will let you know as soon I have something to share with you. The tracking id for this issue is 243856.

    Regards,

    Deepak Sharma

  • Posted 26 September 2017, 8:54 pm EST

    Hello,

    We could not find any public event of control around mouse hovering for FpChart.

    Seem that you must handle it by yourself and build a custom tooltip to work as per your need.

    Sorry for inconvinence.

    Thanks,

    Deepak Sharma

  • Posted 8 October 2017, 9:10 pm EST

    Hello,

    We are not going to add FpChart for WPF in Spread. Sorry for inconvenience.

    Thanks,

    Deepak Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels