Based on http://www.appcelerator.com/blog/2013/09/interactive-charts-in-appcelerator-titanium/