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
540
Time value in tooltip
posted

I've got a line chart where time is plotted on the X axis, and I can't figure out how to get the time value and format it in my IRenderLabel implementation for the tooltip.  I don't see anything in the docs that appears like it would work.  I tried DATA_COLUMN, but it seems to just be a column index and not the X coordinate value.

Thanks!

Parents
No Data
Reply
  • 28496
    Offline posted

     try TIME_VALUE.

     

    here's a little code trick to view all the label keys/values in the tooltip context...

            private void Form1_Load(object sender, EventArgs e)
            {
                Hashtable labelHash = new Hashtable();
                labelHash.Add("MY_LABEL", this);
                this.ultraChart1.LabelHash = labelHash;
                this.ultraChart1.Tooltips.FormatString = "<MY_LABEL>";
            }

            #region IRenderLabel Members

            string IRenderLabel.ToString(Hashtable context)
            {
                foreach (object o in context.Keys)
                {
                    Console.WriteLine(o.ToString() + " // " + context[o].ToString());
                }
                return "hi";
            }

            #endregion

Children
No Data