wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Feature Request: Let me use GraphicalView in layouts #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if I could actually define the placement and styling of my 
chart in a layout XML file instead of having to instantiate the GraphicalView 
instance in code.  Requiring an AbstractChart instance in the constructor is 
basically what prevents this. 

It would basically involve moving the AbstractChart so it's passed in a  
GraphicalView.bind() method that could be called in onCreate/ onResume, similar 
to how you would use a ListView.  This also opens the door to adding other 
custom attrs to GraphicalView, to allow styling in the layout file where it 
belongs.

Original issue reported on code.google.com by tmnich...@gmail.com on 28 Feb 2012 at 10:25

GoogleCodeExporter commented 9 years ago
See the demos, this is possible since day 1 of AChartEngine.

Original comment by dandrome...@gmail.com on 10 Mar 2012 at 5:20

GoogleCodeExporter commented 9 years ago
Perhaps dandrome could provide a link and reference to where this is done.  
This would make his comment a lot more useful to people.

Original comment by tjhawk...@gmail.com on 28 May 2013 at 4:58

GoogleCodeExporter commented 9 years ago
Sure, see this: 
stackoverflow.com/questions/4062161/android-i-am-using-achartengine-library-for-
graphs-but-not-able-to-integrate-a/4079692#4079692

Original comment by dandrome...@gmail.com on 7 Jun 2013 at 8:51