Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DmitriyZaitsev/RadarChartView
Android view (widget) for rendering radial diagrams
https://github.com/DmitriyZaitsev/RadarChartView
android chart radar-chart widget
Last synced: 1 day ago
JSON representation
Android view (widget) for rendering radial diagrams
- Host: GitHub
- URL: https://github.com/DmitriyZaitsev/RadarChartView
- Owner: DmitriyZaitsev
- License: apache-2.0
- Created: 2016-10-14T12:33:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2016-12-26T21:58:44.000Z (over 7 years ago)
- Last Synced: 2024-02-29T00:37:34.137Z (4 months ago)
- Topics: android, chart, radar-chart, widget
- Language: Java
- Homepage:
- Size: 8.93 MB
- Stars: 489
- Watchers: 11
- Forks: 75
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Lists
- awesome-github-android-ui - RadarChartView - 渲染径向图的Android视图 (图表(Chart))
- awesome-github-android-ui - RadarChartView - 渲染径向图的Android视图 (图表(Chart))
README
# Android view (widget) for rendering radial diagrams
## Demo
![]()
## How to startFrom code
```java
// Prepare the data. We're going to show the top ten cheese producing U.S. states in 2013 (in 1,000 pounds)
final Map axis = new LinkedHashMap<>(10);
axis.put("CA", 2312.895F);
axis.put("ID", 871.640F);
axis.put("NY", 751.280F);
axis.put("NM", 661.293F);
axis.put("MN", 661.293F);
axis.put("PA", 426.985F);
axis.put("IA", 267.249F);
axis.put("OH", 196.676F);
axis.put("VT", 127.346F);// Set your data to the view
final RadarChartView chartView = (RadarChartView) findViewById(R.id.chartView);
chartView.setAxis(axis);chartView.setAxisMax(2855.681F); // set max value for the chart
chartView.addOrReplace("WI", 2855.681F); // add new axis
chartView.addOrReplace("OH", 281.59F); // change the existing value
chartView.setAutoSize(true); // auto balance the chart
chartView.setCirclesOnly(true); // if you want circles instead of polygons
chartView.setChartStyle(FILL); // chart drawn with this style will be filled not stroked
// ...
// and many other attributes..
```From XML
```xml```
## Download
Grab via Gradle:
```groovy
// add this repository to your project
allprojects {
repositories {
// ...
maven { url 'https://dl.bintray.com/dmitriyzaitsev/maven' }
// ...
}
}
``````groovy
compile 'com.dzaitsev.android.widget:radarchartview:0.1.0'
```Maven:
```xml
com.dzaitsev.android.widget
radarchartview
0.1.0```
## License
```
Copyright 2016 Dmytro ZaitsevLicensed 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 athttp://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.
```