这是一个基于android的平台的图表框架,支持点击,动画。
TODO: Describe the installation process
- PieChart
xml
<com.zhuhao.hcharts.views.PieView
android:id="@+id/pieview"
android:layout_width="match_parent"
android:layout_height="400dp" />
java
PieView.build(view).setStartAngle(90).setData(datas);
view.setListener(new PieView.PieListener() {
@Override
public void onPieClicked(int position) {
Toast.makeText(getApplicationContext(), position + "pie", Toast.LENGTH_SHORT).show();
}
});
- SimpleBarChart
xml
<com.zhuhao.hcharts.views.SimpleBarView
android:id="@+id/simple_bar_view"
android:layout_width="match_parent"
android:layout_height="0dp" />
java
SimpleBarView.build(view1).setValueLineCount(3).setData(datas1).setTotalValue(70);
view1.setListener(new SimpleBarView.BarListener() {
@Override
public void onBarClicked(int position) {
Toast.makeText(getApplicationContext(), position + "bar", Toast.LENGTH_SHORT).show();
}
});
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
TODO: Write history
TODO: Write credits
TODO: Write license