Tooltip for chart subheader

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mahadevan
Newbie
Newbie
Posts: 25
Joined: Thu Mar 12, 2009 12:00 am

Tooltip for chart subheader

Post by Mahadevan » Mon May 18, 2009 8:48 am

Hi,

Can you please let me know if there is any way to add tool tips to the chart subheader.

Thanks And Regards,
Mahadevan

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Mon May 18, 2009 10:55 am

Hello Mahadevan,

I suggest a solution for add Tooltips the chart subheader. Please check that next code works fine in your application:


InitializeChart:

Code: Select all

        Steema.TeeChart.Styles.Bar bar;
        private void InitializeChart()
        {
            bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            bar.FillSampleValues();
            tChart1.SubHeader.Text = "subheader";
            tChart1.SubHeader.Visible = true;
            tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove);
        }
MouseMove Event:

Code: Select all

        void tChart1_MouseMove(object sender, MouseEventArgs e)
        {
            if (tChart1.SubHeader.Clicked(e.X, e.Y))
            {
                string tmpText = "my subheader hint! " + e.X.ToString() + ", " + e.Y.ToString();

                if (tChart1.Chart.ToolTip.Text != tmpText)
                {
                    tChart1.Chart.ToolTip.Text = tmpText;
                    tChart1.Chart.ToolTip.Show();
                }
            }
            else
            {
                tChart1.Chart.ToolTip.Hide();
            }
        }
I hope that will helps,

Thanks
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Mahadevan
Newbie
Newbie
Posts: 25
Joined: Thu Mar 12, 2009 12:00 am

Re: Tooltip for chart subheader

Post by Mahadevan » Thu Jul 23, 2009 9:09 pm

Hello Sandra,

I am looking for a way to add tooltips to the chart subheader in a web application and not windows application.

Can you please let me know if that is possible?

Thanks And Regards,
Mahadevan

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Tooltip for chart subheader

Post by Sandra » Fri Jul 24, 2009 10:20 am

Hello Mahadevan,

I recomend that see next link, that explains as add toolTips using webControll in asp.

I hope will helps,

Thanks
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Mahadevan
Newbie
Newbie
Posts: 25
Joined: Thu Mar 12, 2009 12:00 am

Re: Tooltip for chart subheader

Post by Mahadevan » Fri Jul 24, 2009 10:32 am

Hello Sandra,

The link pointed out by you refers to using tooltips for server controls.

In this case TeeChart is the Control,if I enable tooltip on that it would be shown on the entire Chart if i am not
mistaken.

My question is about displaying the tooltips on the SubHeader part of the TeeChart.
I am looking for something similar in functionality to the code posted by you for windows application for web applications.

Thanks And Regards,
Mahadevan

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Tooltip for chart subheader

Post by Sandra » Mon Jul 27, 2009 10:08 am

Hello Mahadevan,

I'm sorry, but for now is not possible use ToolTips with WebChart and there is not other component that do something similar. I have added in feature request with number [TW77014315]to regardsin features versions of TeeChartFor .Net.


Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply