Skip to content

mushui-x/RadarStatisticsView

Repository files navigation

RadarStatisticsView

一个简单精美的雷达数据统计图 雷达数据统计数

Use

1、引入依赖

        implementation 'com.jersay.android:radarstatisticsview:1.0.1'

2、在XML中添加view

        <com.jersay.radarstatisticsview.RadarStatisticsView
            android:layout_width="match_parent"
            android:layout_height="300dp" />

3、设置数据和属性

        String[] titles = {"小米", "华为", "苹果", "三星", "OPPO"};
        double[] data = {45, 80, 25, 10, 60};
        statisticsView.setTitles(titles);
        statisticsView.setData(data);
        statisticsView.setMainPaintColor("#3C3F41");
        statisticsView.setValuePaintColor("#B0F566");
        statisticsView.setMaxValue(80);
        statisticsView.setTitlePaintColor("#EB5D0F");
        statisticsView.setTitleSize(28);
        statisticsView.setMainPaintStrokeWidth(2);

About

一个简单精美的雷达数据统计图

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages