Coder Social home page Coder Social logo

sung2063 / androidtableaulibrary Goto Github PK

View Code? Open in Web Editor NEW
57.0 2.0 2.0 3.82 MB

AndroidTableauLibrary is an Android SDK library supports variety of analytic graphs which developers simply integrate on Android project. - by @sung2063

License: MIT License

Kotlin 100.00%
tableau pie-chart piechart progress-bar android sdk analytics

androidtableaulibrary's Introduction

Android Tableau Library


Generic badge Generic badge Generic badge

Android Tableau library supports variety of graphs which developers simply integrate visualization reports on Android application.

๐Ÿ’– Sponsor

Android Tableau library updates regularly. Your valueable sponsorship helps me contributing more features and maintaining the library. Support me for building more interesting projects! ๐Ÿ’œ

๐Ÿ“‹ Table of Contents

  1. Latest Update
  2. Usage Instruction
    1. Setup Project
    2. PieGraphView
    3. DotProgressView
    4. LinearProgressView
  3. Attributions
    1. PieGraphView
    2. DotProgressView
    3. LinearProgressView
  4. Contributors
  5. License

๐Ÿ†• Latest Update

Updated on May 19th 2021

  • NEW: PieGraphView, DotProgressView, and LinearProgressView are released! โœจ

Updated on May 20th 2021

  • Improve codes from v1.0-rc-1

๐Ÿ“– Usage Instruction

1. Setup your Android project setting

Minimum SDK Version: 21 or greater (Update in your app level build.gradle)
Supported Programming Language: Kotlin

Add following snippet code in your project level build.gradle.

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

2. Add required library

First, include following jitpack url inside maven block in your project level build.gradle.

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Next, add the TableauViews and required libraries in app level build.gradle and sync the gradle file.

implementation 'com.github.sung2063:AndroidTableauLibrary:1.0-rc-2'
implementation 'com.google.android.material:material:1.3.0'

Now you are ready to use Tableau Library. You can start creating graph and progress views.


PieGraphView

First, create a PieGraphView in your xml file.

<com.sung2063.tableau_library.graph.PieGraphView
        android:id="@+id/pie_graph_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Next, in your onCreate() method in Activity, create an arrrylist that holds PieGraphModel objects, pass list to new PieGraphHandler object, and set this to pieGraphView handler.

val pieGraphView: PieGraphView = findViewById(R.id.pie_graph_view)

// Create ArrayList<PieGraphModel> object...

val handler = PieGraphHandler(dataList)
pieGraphView.setHandler(handler)

Your pie graph with list of data is displayed on your app! ๐Ÿ‘


DotProgressView

First, create a DotProgressView in your xml file.

<com.sung2063.tableau_library.progress.DotProgressView
        android:id="@+id/dot_progress_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Next, in your onCreate() method in Activity, create an mutableList that holds DotProgressModel objects, pass list to new DotProgressHandler object, and set this to dotProgressView handler.

val dotProgressView: DotProgressView = findViewById(R.id.dot_progress_view)

// Create MutableList<DotProgressModel> object...

val handler = DotProgressHandler(dataList)
dotProgressView.setHandler(handler)

Your dot progress graph with list of data is displayed on your app! ๐Ÿ‘


LinearProgressView

First, create a LinearProgressView in your xml file.

<com.sung2063.tableau_library.progress.LinearProgressView
        android:id="@+id/linear_progress_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

Next, in your onCreate() method in Activity, create an mutableList that holds LinearProgressModel objects, pass list to new LinearProgressHandler object, and set this to linearProgressView handler.

val linearProgressView: LinearProgressView = findViewById(R.id.linear_progress_view)

// Create MutableList<LinearProgressModel> object...

val handler = LinearProgressHandler(dataList)
linearProgressView.setHandler(handler)

Your linear progress graph with list of data is displayed on your app! ๐Ÿ‘

๐ŸŽจ Attributions

Here are available attributions you can use to customize your tableau views.

PieGraphView

Attribution Value Description
useArcColor boolean Use each object's arc color if the value true, otherwise use default color.
graphColor string User choose default graph color. This applies only when useArcColor attribution is false.

DotProgressView

Attribution Value Description
useCommonColor boolean Use all progress same color if the value true, otherwise use own progress color which set on each objects.
filledColor string Hex color code for progress. This applies only when useCommonColor attribution is true.
unfilledColor string Hex color code for scale line.

LinearProgressView

Attribution Value Description
useCommonColor boolean Use all progress same color if the value true, otherwise use own progress color which set on each objects.
filledColor string Hex color code for progress. This applies only when useCommonColor attribution is true.
unfilledColor string Hex color code for scale line.
maxValue integer The maximum value for progress.

๐ŸŒŸ Contributors

Developer: Sung Hyun Back (@sung2063)

Designer: Da Eun Park

๐Ÿ“ License

The code is licensed under the MIT License.

androidtableaulibrary's People

Contributors

sung2063 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

androidtableaulibrary's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.