• Stars
    star
    2,755
  • Rank 16,528 (Top 0.4 %)
  • Language
    Java
  • License
    Other
  • Created over 13 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android Graph Library for creating zoomable and scrollable line and bar graphs.

Chart and Graph Library for Android

Project maintainer wanted! For time reasons I can not continue to maintain GraphView. Contact me if you are interested and serious about this project. [email protected]

What is GraphView

GraphView is a library for Android to programmatically create flexible and nice-looking diagrams. It is easy to understand, to integrate and to customize.

Supported graph types:

  • Line Graphs
  • Bar Graphs
  • Point Graphs
  • or implement your own custom types.

Top Features

  • Line Chart, Bar Chart, Points
  • Combination of different graph types
  • Scrolling vertical and horizontal . You can scroll with a finger touch move gesture.
  • Scaling / Zooming vertical and horizontal . With two-fingers touch scale gesture (Multi-touch), the viewport can be changed.
  • Realtime Graph (Live change of data)
  • Second scale axis
  • Draw multiple series of data . Let the diagram show more that one series in a graph. You can set a color and a description for every series.
  • Show legend . A legend can be displayed inline the chart. You can set the width and the vertical align (top, middle, bottom).
  • Custom labels . The labels for the x- and y-axis are generated automatically. But you can set your own labels, Strings are possible.
  • Handle incomplete data . It's possible to give the data in different frequency.
  • Viewport . You can limit the viewport so that only a part of the data will be displayed.
  • Manual Y axis limits
  • And much more... Check out the project page and/or the demo app

How to use

  1. Add gradle dependency:
implementation 'com.jjoe64:graphview:4.2.2'
  1. Add view to layout:
<com.jjoe64.graphview.GraphView
        android:layout_width="match_parent"
        android:layout_height="200dip"
        android:id="@+id/graph" />
  1. Add some data:
GraphView graph = (GraphView) findViewById(R.id.graph);
LineGraphSeries<DataPoint> series = new LineGraphSeries<DataPoint>(new DataPoint[] {
          new DataPoint(0, 1),
          new DataPoint(1, 5),
          new DataPoint(2, 3),
          new DataPoint(3, 2),
          new DataPoint(4, 6)
});
graph.addSeries(series);

Download Demo project at Google Play Store


Showcase GraphView Demo App

More examples and documentation

Get started at project wiki homepage

To show you how to integrate the library into an existing project see the GraphView-Demos project! See GraphView-Demos for examples. https://github.com/jjoe64/GraphView-Demos
View GraphView wiki page https://github.com/jjoe64/GraphView/wiki

More Repositories

1

GraphView-Demos

Examples for my Android GraphView library
Java
297
star
2

jquery-mobile-android-theme

This is a custom jquery mobile theme, that matches the Holo theme family in Android 4.0 Theme.Holo.Dark and Theme.Holo.Light.
JavaScript
110
star
3

android-motion-detection

Camera motion detector example
Java
63
star
4

esp32_ble_light

Stripped version of the ESP32 BLE library, to only support server logic and reduce size
C++
23
star
5

jquery-mobile-toast

Toast Notifications - jquery mobile plugin
Perl
15
star
6

android-dockable-view

This view can be expanded/collapsed with a move gesture.
11
star
7

shiroexample

apache shiro with hibernate example project
Java
10
star
8

nodejs-physijs

run physijs on node
JavaScript
9
star
9

dhtmlx-guestbook

a MVC app with DHTMLX touch (for learning)
JavaScript
5
star
10

NFC-Card-Analyzing

simple analyzing of MifareClassic NFC tech
Java
4
star
11

horaz

Horaz is a cross-platform framework for writing mobile applications in Java and HTML. It bases on GWT, Phonegap and jQuery mobile.
Java
4
star
12

google-tasks-android

Android App for Google Tasks
Java
3
star
13

babydevelop

BabyDevelop is a lightweight Integrated Development Environment for C, C++ and Qt.
C++
3
star
14

ggj2014-shadow

JavaScript
2
star
15

qt-android-helloworld

C++
2
star
16

google-tasks-android-test

Java
2
star
17

android-preventing-touch-test

Java
2
star
18

horaz-todo-list-android

todo list written in Horaz as Android project
JavaScript
2
star
19

html5-history-gallery

Gallery that can be controlled with the browser's back/forward buttons.
2
star
20

horaz-todo-list

Todo list app written in Horaz
Java
2
star
21

Hello-Renderscript

my first android renderscript test
2
star
22

horaz-helloworld

Helloworld example app for Horaz library
Java
1
star
23

react-native-calendar-manager

Add calendar events on iOS and Android
Objective-C
1
star
24

gwt-i18n-gae

GWT I18N Server-Side on GAE
Java
1
star
25

horaz-homepage

Java
1
star
26

JackrabbitPostgresqlExample

Jackrabbit 2.9 with PostgreSQL example project
Java
1
star