TeeCharts for Android - poor performance

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
_vizZ
Newbie
Newbie
Posts: 1
Joined: Thu Sep 13, 2012 12:00 am

TeeCharts for Android - poor performance

Post by _vizZ » Fri Sep 14, 2012 2:29 pm

Hi, how can I make the charts more responsive? I've tried them on Galaxy Note ( so it's not some low-end phone ) and a simple Line chart is so "choppy"... How can I make it scroll smoother ( with or without the ScrollPager )?

I've check StackOverflow and Forums and found no solution yet.

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

Re: TeeCharts for Android - poor performance

Post by Yeray » Mon Sep 17, 2012 8:21 am

Hi,

Have you looked at the PanData tool? You can find it in the demo.
Also note that, as more points and elements of the chart to be drawn (grid lines, gradients, etc) more time is needed to draw the chart. And scrolling/panning the chart means redrawing it several times.

Code: Select all

		tChart1.getAspect().setView3D(false);
		tChart1.getLegend().setVisible(false);
		tChart1.getPanel().getGradient().setVisible(false);
		tChart1.getWalls().getBack().getGradient().setVisible(false);
		tChart1.getWalls().getBack().setVisible(false);
		tChart1.getAxes().getLeft().getGrid().setVisible(false);
		tChart1.getAxes().getBottom().getGrid().setVisible(false);
	    
		Line line1 = new Line(tChart1.getChart());
		line1.fillSampleValues();
		
		PanData panData = new PanData(tChart1.getChart());
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