Skip to content

An easy-to-use Android charts library with animation.

License

Notifications You must be signed in to change notification settings

RoarG/AndroidCharts

 
 

Repository files navigation

AndroidCharts

A simple Android charts library.

##Building ####Building From Eclipse

  • Import /AndroidCharts folder.
  • Move /java folder to /src folder.
  • mkdir libs, copy android-support-v4.jar to /libs.

Usage

Line Chart

Line Chart

<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);

Bar Chart

Bar Chart

<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);

Clock Pie Chart

Clock Pie Chart

<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);

License

  • MIT License

Contributing

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

About

An easy-to-use Android charts library with animation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published