A simple Android charts library.
##Building ####Building From Eclipse
- Import
/AndroidCharts
folder. - Move
/java
folder to/src
folder. mkdir libs
, copyandroid-support-v4.jar
to/libs
.
<HorizontalScrollView>
<view
android:layout_width="wrap_content"
android:layout_height="300dp"
class="com.dacer.androidcharts.LineView"
android:id="@+id/line_view" />
</HorizontalScrollView>
LineView lineView = (LineView)findViewById(R.id.line_view);
lineView.setDrawDotLine(false); //optional
lineView.setShowPopup(LineView.SHOW_POPUPS_MAXMIN_ONLY); //optional
LineView.setBottomTextList(strList);
LineView.setDataList(dataLists);
<HorizontalScrollView>
<view
android:layout_width="wrap_content"
android:layout_height="300dp"
class="com.dacer.androidcharts.BarView"
android:id="@+id/bar_view" />
</HorizontalScrollView>
BarView barView = (BarView)findViewById(R.id.bar_view);\
barView.setBottomTextList(strList);
barView.setDataList(dataList,100);
<view
android:layout_width="wrap_content"
android:layout_height="300dp"
class="com.dacer.androidcharts.PieView"
android:id="@+id/pie_view" />
PieView pieView = (PieView)findViewById(R.id.pie_view);
ArrayList<PieHelper> pieHelperArrayList = new ArrayList<PieHelper>();
pieView.setDate(pieHelperArrayList);
- MIT License
Please fork this repository and contribute back using pull requests.
Any contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed