Tool Tip for Box Plot

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

Tool Tip for Box Plot

Post by jenb » Thu Jun 11, 2009 10:40 am

Hi Narcis

I would like to do something like the following:

Hover the mouse over a box in the box plot and display information in a large tool tip window. Example of information to be displayed would be a summary of information on the box series, e.g. median, minimum, and maximum values, number of observations, mean value. Some of the information would be available from the box series and some from other sources.

Any suggestions of how this should be done?

Thanks

jenb

jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

Re: Tool Tip for Box Plot

Post by jenb » Thu Jun 11, 2009 2:02 pm

I think that the mark tip tool can be used to do what I want. However with the box series the mark tip seems to only be displayed when the mouse is right at the minimum point of the series. Ideally the mark tip would be displayed when the mouse is over any point in the series. Any suggestions? I have version 3.5.3330.21114.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Tool Tip for Box Plot

Post by Narcís » Fri Jun 12, 2009 2:17 pm

Hi jenb,

You can retrieve BoxPlot data as in the example I posted here.

Regarding BoxPlot mouse hovering, you can use Box series Clicked method, for example:

Code: Select all

		private Steema.TeeChart.Styles.Box box1;

		private void InitializeChart()
		{
			box1 = new Steema.TeeChart.Styles.Box(tChart1.Chart);
			box1.FillSampleValues();

			tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove);
		}

		void tChart1_MouseMove(object sender, MouseEventArgs e)
		{
			if (box1.Clicked(e.X, e.Y) != -1)
			{
				this.Text = "box clicked";
			}
			else
			{
				this.Text = "box NOT clicked!!";
			}
		}
Best Regards,
Narcís Calvet / 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

jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

Re: Tool Tip for Box Plot

Post by jenb » Mon Jun 15, 2009 8:07 am

Hi Narcis

I tried your suggestion with the OnMouseMove event however it seems that
(box1.Clicked(e.X, e.Y) != -1)
is true any time the mouse moves over any of the three box series on the chart. The same happens when I set up OnMouseEnter or OnMarkTipGetText events for the separate box series. Even though an event is attached to only 1 series it can be triggered by the mouse moving over any of the box series.

Regards

jenb

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Tool Tip for Box Plot

Post by Narcís » Mon Jun 15, 2009 10:29 am

Hi jenb,

I could reproduce the issue here and added it (TF02014239) to the defect list to be fixed for next releases.
Best Regards,
Narcís Calvet / 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