Simplegraph is android library for simple graph view that is similar to the ones you see on coin exchange sites.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5220334 Nov 28, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
app delete file Nov 15, 2018
img changing screenshot Nov 17, 2018
simplegraph delete file Nov 15, 2018
.gitignore adding screenshot image Nov 14, 2018 Update Nov 27, 2018
build.gradle Initial commit Nov 14, 2018 delete file Nov 15, 2018
gradlew Initial commit Nov 14, 2018
gradlew.bat Initial commit Nov 14, 2018
settings.gradle Initial commit Nov 14, 2018

GitHub license


Simplegraph is Android custom view that can generate graphs similar to the ones you see on coin trading/exchange sites.

If you clone the whole project, main app is a sample app that you can run and see simplegraph functionality in action.

Why this library is out there? Well, I've spent too much time looking for library that does only one thing, and that is, creates graph for simple representation of values over time. Sure, there are already some nice libraries out there that can do the job, but I needed something super simple and tiny. And that is why I had to create "Simplegraph". And now, if anyone needs same functionality in their projects, here it is.

Usage is as simple as posible. View takes series of float numbers (Y axis points) and draws the graph. X-axis point values are not needed since library uses same spacing between each consecutive point.

Sample Usage

To use view in your own project simply use linegraph view in your project, like:


There are two properties you can use in the view. Their names are self-explanatory:

  • lineThickness
  • lineColor

and then in your code you can do something like this:

        val lineGraph = findViewById<LineGraph>(
        val series = arrayOf(0f, 1f, 2f, 8f, 5f, 13f, 4f, 3f, 0f)

To use simplegraph in your projects add dependency in app's build.gradle file

dependencies {
    implementation 'com.bandiago.libs:simplegraph:0.0.2'

Example of use

Alt text

Screenshot is taken from the app: "Tokenizer Wallet" by Bandiago. You can find it on Play Store and if you are into crypto it's worth checking out.


Copyright 2018 Nikola Šoljaga

Licensed 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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.