android - AChartEngine dates on X-axis with BarChart or CubeChart -


i'm trying make chart dates on x-axis , consumption per time month/day etc. on y-axis.

i have database of actual states of energy meters in specific datetime:

  • 1.1.2014 - 150 kwh
  • 5.1.2014 - 200 kwh

so can consumption/time - 50/5 => 10 kwh/day time 1.1. 5.1.

i guess need resolution, every day example (better every hour), , add value of consumption in every hour 1.1. 5.1.. need have resolution on x-axis labels, 1,2,3...31 day of month etc. want achieve on zoom out have resolution, means labels on x-axis. months. 1,2,3..12 , values of consumption lower resolution, rounded in specific months.

i don't know how that, if it's possible?

i achieve x-axis label in zoom (better hours in higher zoom):

http://i.stack.imgur.com/b52b1.png

and x-axis labels zoomed out, on graph:

enter image description here

do need make map of x-axis labels whole times (where have data of consumption) , fill counted values somehow?

ps: want achieve x-axis labels bar chart or cubic line (cube) chart.

thanks tips


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -