• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

RadarChart: RadarView 是一个可以自由定制、旋转交互的Android雷达图Lib ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

RadarChart

开源软件地址:

https://gitee.com/mirrors/RadarChart

开源软件介绍:

RadarView

Download

一个可以自由定制、旋转交互的Android雷达图Lib

一些特性

  • 支持手势旋转(可关闭)

  • 支持动画的方式添加展现数据

  • 支持对各层雷达网添加背景

  • 支持自定义雷达网层数

  • 支持使用圆形作为雷达网

  • 扇区(顶点)个数无限制

  • 顶点描述支持图文混排

  • 支持添加多组数据

  • 数据区支持设置值的描述文字

  • 所有的文字、雷达网、线、数据区颜色和大小均可定制

how to use:

1. gradle

     compile 'q.rorbin:RadarView:1.0.4'

VERSION_CODE : here

2. xml

     <rorbin.q.radarview.RadarView        android:id="@+id/radarView"        android:layout_width="match_parent"        android:layout_height="match_parent"/>

3. 属性说明

xmlcode说明
app:radar_layersetLayer雷达网层数
app:rotation_enablesetRotationEnable是否打开手势旋转
app:web_modesetWebMode雷达网模式(多边形、圆形...)
app:max_valuesetMaxValue最外圈的值
app:vertex_line_colorsetVertexLineColor顶点连线颜色
app:vertex_line_widthsetVertexLineWidth顶点连线宽度
app:layer_line_colorsetLayerLineColor雷达网线条颜色
app:layer_line_widthsetLayerLineWidth雷达网线条宽度
app:vertex_textsetVertexText顶点文字内容(字符串数组)
app:vertex_text_colorsetVertexTextColor顶点文字颜色
app:vertex_text_sizesetVertexTextSize顶点文字大小
app:vertex_icon_sizesetVertexIconSize顶点图片的尺寸限制值
app:vertex_icon_positionsetVertexIconPosition顶点图片相对于顶点文字的位置
app:vertex_icon_marginsetVertexIconMargin顶点图片相对于顶点文字的间距
app:vertex_text_offsetsetVertexTextOffset顶点图文距最外层网偏移量
app:center_text_colorsetCenterTextColor中心文字颜色
app:center_text_sizesetCenterTextSize中心文字大小
app:center_textsetCenterText中心文字内容

注:各属性均有默认值

4. 方法说明

code说明
setLayerColor设置雷达网各层颜色
animeValue展现一次数据添加动画
addData添加数据
removeRadarData删除一组数据
clearRadarData删除所有数据
setEmptyHint设置空数据时的提示
setMaxValue设置数据区最大限制值
setMaxValues设置数据区各顶点最大限制值
setVertexIconBitmap setVertexIconResid设置顶点图片内容

5. 添加数据

  1. 创建并添加数据
List<Float> values = new ArrayList<>();Collections.addAll(values, 3.2f, 6.7f, 2f, 7f, 5.6f);RadarData data = new RadarData(values);mRadarView.addData(data);
  1. 方法说明
code说明
setLabel数据的标注
setValue设置(更改)数据值
 setLineWidth设置边线宽度
 setValueText数据值的描述
setValueTextEnable是否显示描述
setValueTextSize描述的文字大小
setVauleTextColor描述的文字颜色

6. 更新计划

添加点击事件接口

LICENSE

Copyright 2016, RorbinQiuLicensed 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.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap