Search code examples
androidgraphandroidplot

Optimising Androidplot


Seems Androidplot (androidplot.com) website/forums are down so I'll try asking this question here.

I have multi touch zoom and scrolling. Similar code to http://mlepicki.com/2012/03/androidplot-multitouch-zoom-scroll/ except that I have a bar graph instead. However with 100 data points it has noticeable lag. Even with 10 bars are just showing. Sounds like its drawing/calculating/etc all bars.

Any idea on how I could optimise this?

I can't use hardware rendering as I want to support Android 2.1 and the library doesn't support it(it breaks).


Solution

  • BarRenderer was optimized quite a bit in Androidplot 1.4.0 so a custom Renderer should no longer be necessary.