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
2070
Ultra chart - Tooltip needed on legend mouse over
posted

Hi

I need to display the text as tooltip  that what is displayed in legend while mouse over. How can I do this?

For Eg. In Progress on tooltip

Thanks in advance.

Parents
No Data
Reply
  • 28496
    Offline posted

    assuming your setting for Tooltips.FormatString is "<ITEM_LABEL>", you can achieve this by handling the ChartDrawItem event:

            private void ultraChart1_ChartDrawItem(object sender, ChartDrawItemEventArgs e)
            {
                if (e.Primitive.Path != null && e.Primitive.Path.Contains("Legend"))
                {
                    e.Primitive.Caps |= PCaps.HitTest | PCaps.Tooltip;
                }
            }

Children