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
180
MoreIndicatorText
posted

When I have many legend items, I can see the "more..." label, but as a user - I expect to click it and see the whole legend - either by temporarily expanding the legened area, or as a tooltip.

Currently, the "more..." label is a little bti confusing.

Is that possible ?

Parents
  • 28496
    Offline posted

    try this solution to get the more indicator text to raise the ChartDataClicked event.

            private void ultraChart1_ChartDrawItem(object sender, ChartDrawItemEventArgs e)
            {
                Text t = e.Primitive as Text;
                if (t != null)
                {
                    string s = t.GetTextString();
                    if (s != null && s.ToLower().IndexOf("more") != -1)
                    {
                        t.Caps |= PCaps.HitTest;
                        t.Chart = this.ultraChart1.ChartType;
                        t.Row = t.Column = 0;
                    }
                }
            }

            private void ultraChart1_ChartDataClicked(object sender, ChartDataEventArgs e)
            {
                Text t = e.Primitive as Text;
                if (t != null)
                {
                    string s = t.GetTextString();
                    if (s != null && s.ToLower().IndexOf("more") != -1)
                    {
                        Console.WriteLine("you clicked the more indicator text");
                    }
                }
            }

Reply Children
No Data