lecho/hellocharts-android hiện có 7.6k sao trên GitHub, viết chủ yếu bằng Java. Charts library for Android compatible with API 8+, several chart types with scaling, scrolling and animations 📊
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Charting library for Android compatible with API 8+(Android 2.2).
Works best when hardware acceleration is available, so API 14+(Android 4.0) is recommended.
Apache License 2.0.
Features
Line chart(cubic lines, filled lines, scattered points)
Column chart(grouped, stacked, negative values)
Pie chart
Bubble chart
Combo chart(columns/lines)
Preview charts(for column chart and line chart)
Zoom(pinch to zoom, double tap zoom), scroll and fling
Custom and auto-generated axes(top, bottom, left, right, inside)
Animations
Screens and Demos
Code of a demo application is in hellocharts-samples directory, requires appcompat v21.
The demo app is also ready for download on Google Play.
Short video is available on YouTube.
Download and Import
Android Studio/Gradle
Maven Central/jCenter, add dependency to your build.gradle:
Every chart has its own method to set chart data and its own data model, example for line chart:
List<PointValue> values = new ArrayList<PointValue>();
values.add(new PointValue(0, 2));
values.add(new PointValue(1, 4));
values.add(new PointValue(2, 3));
values.add(new PointValue(3, 4));
//In most cased you can call data model methods in builder-pattern-like manner.
Line line = new Line(values).setColor(Color.BLUE).setCubic(true);
List<Line> lines = new ArrayList<Line>();
lines.add(line);
LineChartData data = new LineChartData();
data.setLines(lines);
LineChartView chart = new LineChartView(context);
chart.setLineChartData(data);
After the chart data has been set you can still modify its attributes but right after that you should call
set*ChartData() method again to let chart recalculate and redraw data. There is also an option to use copy constructor for deep copy of
chart data. You can safely modify copy in other threads and pass it to set*ChartData() method later.
Contributing
Yes:) If you found a bug, have an idea how to improve library or have a question, please create new issue or comment existing one. If you would like to contribute code fork the repository and send a pull request.
License
HelloCharts
Copyright 2014 Leszek Wach
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
HelloCharts library uses code from InteractiveChart sample available
on Android Developers page:
http://developer.android.com/training/gestures/scale.html
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/lecho/hellocharts-android là nguồn chính thức.
lecho/hellocharts-android có những chủ đề gì?
GitHub topics của lecho/hellocharts-android: "android", "chart". TopGit xếp repo vào nhóm Mobile.
lecho/hellocharts-android có phải mã nguồn mở không?
Có — lecho/hellocharts-android phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/lecho/hellocharts-android.
lecho/hellocharts-android có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho lecho/hellocharts-android. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
lecho/hellocharts-android còn đang phát triển không?
Commit gần nhất trên lecho/hellocharts-android là 5.5 năm trước (theo timestamp GitHub). Repo có 1.6k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
lecho/hellocharts-android dùng license gì?
lecho/hellocharts-android phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về hellocharts-android?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về hellocharts-android.