- Notifications
You must be signed in to change notification settings - Fork328
An easy-to-use Android charts library with animation.
License
HackPlan/AndroidCharts
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple Android charts library.
- Import
/AndroidChartsfolder. - Move
/javafolder to/srcfolder. mkdir libs, copyandroid-support-v4.jarto/libs.
repositories { jcenter()}compile'im.dacer:AndroidCharts:1.0.4'<HorizontalScrollView> <viewandroid:layout_width="wrap_content"android:layout_height="300dp"class="im.dacer.androidcharts.LineView"android:id="@+id/line_view" /></HorizontalScrollView>
LineViewlineView = (LineView)findViewById(R.id.line_view);lineView.setDrawDotLine(false);//optionallineView.setShowPopup(LineView.SHOW_POPUPS_MAXMIN_ONLY);//optionallineView.setBottomTextList(strList);lineView.setColorArray(newint[]{Color.BLACK,Color.GREEN,Color.GRAY,Color.CYAN});lineView.setDataList(dataLists);//or lineView.setFloatDataList(floatDataLists)
<HorizontalScrollView> <viewandroid:layout_width="wrap_content"android:layout_height="300dp"class="im.dacer.androidcharts.BarView"android:id="@+id/bar_view" /></HorizontalScrollView>
BarViewbarView = (BarView)findViewById(R.id.bar_view);\barView.setBottomTextList(strList);barView.setDataList(dataList,100);
<viewandroid:layout_width="300dp"android:layout_height="wrap_content"class="im.dacer.androidcharts.ClockPieView"android:id="@+id/clock_pie_view" />
ClockPieViewpieView = (ClockPieView)findViewById(R.id.clock_pie_view);ArrayList<ClockPieHelper>pieHelperArrayList =newArrayList<ClockPieHelper>();pieView.setDate(pieHelperArrayList);
<viewandroid:layout_width="300dp"android:layout_height="wrap_content"class="im.dacer.androidcharts.PieView"android:id="@+id/pie_view" />
PieViewpieView = (PieView)findViewById(R.id.pie_view);ArrayList<PieHelper>pieHelperArrayList =newArrayList<PieHelper>();pieView.setDate(pieHelperArrayList);pieView.selectedPie(2);//optionalpieView.setOnPieClickListener(listener)//optionalpieView.showPercentLabel(false);//optional
The MIT License (MIT)
Copyright (c) 2013 Ding Wenhao
Permission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe Software, and to permit persons to whom the Software is furnished to do so,subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please fork this repository and contribute back usingpull requests.
Any contributions, large or small, major features, bug fixes, additionallanguage translations, unit/integration tests are welcomed
About
An easy-to-use Android charts library with animation.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors6
Uh oh!
There was an error while loading.Please reload this page.



