项目作者: JastAir

项目描述 :
Background with chart and smooth bezier lines from float array. Simple use and connect
高级语言: Kotlin
项目地址: git://github.com/JastAir/Android-BackgroundChart.git
创建时间: 2019-03-08T21:33:43Z
项目社区:https://github.com/JastAir/Android-BackgroundChart

开源协议:GNU General Public License v3.0

下载



Android Arsenal

Android-BackgroundChart

screenshot

It is a simple chart for background display of your activity or fragment. You can choose colors with gradient to display pn your chart the most customize or choose what kind your chart needs now, simple lines or bezier.
Best it usage and good luck ;)

How use

  1. <com.fdev.backgroundchart.GradientChart
  2. android:id="@+id/gradientChart"
  3. android:layout_width="0dp"
  4. android:layout_height="0dp"
  5. app:layout_constraintBottom_toBottomOf="parent"
  6. app:layout_constraintEnd_toEndOf="parent"
  7. app:layout_constraintStart_toStartOf="parent"
  8. app:layout_constraintTop_toTopOf="parent"
  9. app:plusColorStart="#2196F3"
  10. app:plusColorEnd="#90CAF9"
  11. app:minusColorStart="#90CAF9"
  12. app:minusColorEnd="#90CAF9"
  13. app:zoom="10"
  14. app:isBezier="true"></com.fdev.backgroundchart.GradientChart>

And for appent your data just write for example

  1. gradientChart.chartValues = arrayOf(
  2. 10f, 30f, 25f, 32f, 13f, 5f, 18f, 36f, 20f, 30f, 28f, 27f, 29f
  3. )

Gradle

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

Step 2. Add the dependency

  1. dependencies {
  2. implementation 'com.github.JastAir:Android-BackgroundChart:{version}'
  3. }