Page 1 of 1

Tool Tip for Box Plot

Posted: Thu Jun 11, 2009 10:40 am
by 13045625
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

Re: Tool Tip for Box Plot

Posted: Thu Jun 11, 2009 2:02 pm
by 13045625
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.

Re: Tool Tip for Box Plot

Posted: Fri Jun 12, 2009 2:17 pm
by narcis
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!!";
			}
		}

Re: Tool Tip for Box Plot

Posted: Mon Jun 15, 2009 8:07 am
by 13045625
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

Re: Tool Tip for Box Plot

Posted: Mon Jun 15, 2009 10:29 am
by narcis
Hi jenb,

I could reproduce the issue here and added it (TF02014239) to the defect list to be fixed for next releases.