Prepare achartengine graph with button to change period.