Skip to content

会移动的折线图(A Moving LineChart with Animation)

Notifications You must be signed in to change notification settings

SmallBlueWhale/WhaleLineChart

Repository files navigation

移动折线图

折线图,支持矩形块和图形移动

效果图

image

用法

1. 添加依赖

克隆本项目添加依赖或者在Gradle中添加依赖:

    compile 'com.huayuxun.whale.whaleradargraph.widget.WhaleLineChart'

Gradle方式可能暂时无法使用

2. 布局文件中定义

    <com.huayuxun.whale.whalelinechart.WhaleLineChart
        android:id="@+id/whaleLineChart"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true" />

3. 添加数据

        whaleLineChart = (WhaleLineChart) findViewById(R.id.whaleLineChart);
        whaleLineChart.setScore(12000);  
        

更多特性

  • xml属性
    暂时未加入太多自定义属性

  • 外部接口 WhaleLineChart.setScole(int scole):可动态设置数据

License

The MIT License (MIT)

Copyright (c) 2016 whale(王金辉)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

会移动的折线图(A Moving LineChart with Animation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages