Chart Tooltip in android

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Indus Systems
Newbie
Newbie
Posts: 9
Joined: Wed Nov 09, 2011 12:00 am

Chart Tooltip in android

Post by Indus Systems » Thu Feb 09, 2012 6:57 am

Hello,
Can we show a tooltip on series touch event? Is there any callback function for series touch event?

Regards
Shibu
Indus Systems Inc

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Tooltip in android

Post by Yeray » Thu Feb 09, 2012 10:24 am

Hi Shibu,

There is a Marks Tip tool as you can see in the Android demo. Isn't it what you are looking for?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Indus Systems
Newbie
Newbie
Posts: 9
Joined: Wed Nov 09, 2011 12:00 am

Re: Chart Tooltip in android

Post by Indus Systems » Thu Feb 09, 2012 12:39 pm

Hello, Yeray

Yes, That is we are looking.

With Thanks
Shibu
Indus Systems Inc

Indus Systems
Newbie
Newbie
Posts: 9
Joined: Wed Nov 09, 2011 12:00 am

Re: Chart Tooltip in android

Post by Indus Systems » Fri Feb 10, 2012 5:02 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Tooltip in android

Post by Yeray » Mon Feb 13, 2012 10:15 am

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);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Indus Systems
Newbie
Newbie
Posts: 9
Joined: Wed Nov 09, 2011 12:00 am

Re: Chart Tooltip in android

Post by Indus Systems » Mon Feb 13, 2012 11:33 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Tooltip in android

Post by Yeray » Tue Feb 14, 2012 11:14 am

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);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply