Page 1 of 1

TeeCharts for Android - poor performance

Posted: Fri Sep 14, 2012 2:29 pm
by 17063480
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.

Re: TeeCharts for Android - poor performance

Posted: Mon Sep 17, 2012 8:21 am
by yeray
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());