Page 1 of 1

Chart Tooltip in android

Posted: Thu Feb 09, 2012 6:57 am
by 17060683
Hello,
Can we show a tooltip on series touch event? Is there any callback function for series touch event?

Regards
Shibu
Indus Systems Inc

Re: Chart Tooltip in android

Posted: Thu Feb 09, 2012 10:24 am
by yeray
Hi Shibu,

There is a Marks Tip tool as you can see in the Android demo. Isn't it what you are looking for?

Re: Chart Tooltip in android

Posted: Thu Feb 09, 2012 12:39 pm
by 17060683
Hello, Yeray

Yes, That is we are looking.

With Thanks
Shibu
Indus Systems Inc

Re: Chart Tooltip in android

Posted: Fri Feb 10, 2012 5:02 am
by 17060683
Hello Yeray,

It is not working when pan is enabled. Also is it possible to disable that toast, because we need only the touch event of the series

Regards
Shibu
Indus Systems Inc

Re: Chart Tooltip in android

Posted: Mon Feb 13, 2012 10:15 am
by yeray
Hi Shibu,

The Pan is disabled by default. So I think only the Zoom could interfere here. You could disable it as follows:

Code: Select all

tChart1.getZoom().setAllow(false);

Re: Chart Tooltip in android

Posted: Mon Feb 13, 2012 11:33 am
by 17060683
Hello Yeray,
We use pan featur for our chart because we have to show large number of categories in chart. So it should pan chart area horizontally.

Regards
Shibu
Indus Systems Inc

Re: Chart Tooltip in android

Posted: Tue Feb 14, 2012 11:14 am
by yeray
Hi Shibu,

Ah, I've found the Panning MouseButton should be BUTTON1 in Android. Otherwise it could give problems.
The following code and it seems to work fine for me here:

Code: Select all

		ThemesList.applyTheme(tChart1.getChart(), 1);
		
		tChart1.getAspect().setView3D(false);
		tChart1.getLegend().setVisible(false);
		
		Bar bar1 = new Bar(tChart1.getChart());
		bar1.fillSampleValues(30);
		
		tChart1.getAxes().getBottom().setMinMax(-0.5, 9.5);
		
		MarksTip mark1 = new MarksTip(tChart1.getChart());
		tChart1.getPanning().setMouseButton(FrameworkMouseEvent.BUTTON1);
		tChart1.getPanning().setAllow(ScrollMode.HORIZONTAL);
		mark1.setMouseAction(MarksTipMouseAction.CLICK);
		tChart1.getZoom().setAllow(false);