Fork of the HoloGraphLibrary by Daniel Nadeau with additionnal features

Overview

HoloGraphLibrary

Fork of the HoloGraphLibrary by Daniel Nadeau, with additionnal features

Welcome

This is a library written to allow beautiful graphs and charts to be easily incorporated into your Android application. Included are:

  • LineGraph view
  • BarGraph view
  • PieGraph view
  • MultiSeriesDonutGraph view

LineGraph BarGraph PieGraph MultiSeriesDonutGraph

Usage

LineGraph View

<com.echo.holographlibrary.LineGraph
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:id="@+id/graph"/>
Line l = new Line();
LinePoint p = new LinePoint();
p.setX(0);
p.setY(5);
l.addPoint(p);
p = new LinePoint();
p.setX(8);
p.setY(8);
l.addPoint(p);
p = new LinePoint();
p.setX(10);
p.setY(4);
l.addPoint(p);
l.setColor(Color.parseColor("#FFBB33"));
		
LineGraph li = (LineGraph)findViewById(R.id.graph);
li.addLine(l);
li.setRangeY(0, 10);
li.setLineToFill(0);

BarGraph View

<com.echo.holographlibrary.BarGraph
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:id="@+id/graph"/>
ArrayList<Bar> points = new ArrayList<Bar>();
Bar d = new Bar();
d.setColor(Color.parseColor("#99CC00"));
d.setName("Test1");
d.setValue(10);
Bar d2 = new Bar();
d2.setColor(Color.parseColor("#FFBB33"));
d2.setName("Test2");
d2.setValue(20);
points.add(d);
points.add(d2);

BarGraph g = (BarGraph)findViewById(R.id.graph);
g.setBars(points);
g.setUnit("$");

PieGraph View

<com.echo.holographlibrary.PieGraph
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:id="@+id/graph"/>
PieGraph pg = (PieGraph)findViewById(R.id.graph);
PieSlice slice = new PieSlice();
slice.setColor(Color.parseColor("#99CC00"));
slice.setValue(2);
pg.addSlice(slice);
slice = new PieSlice();
slice.setColor(Color.parseColor("#FFBB33"));
slice.setValue(3);
pg.addSlice(slice);
slice = new PieSlice();
slice.setColor(Color.parseColor("#AA66CC"));
slice.setValue(8);
pg.addSlice(slice);

#MultiSeriesDonutGraph View

<com.echo.holographlibrary.MultiSeriesDonutGraph
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:id="@+id/graph"/>
MultiSeriesDonutGraph mg = (MultiSeriesDonutGraph) v.findViewById(R.id.multiseriesdonutgraph);

MultiSeriesDonutSlice slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#99CC00"));
slice.setValue(2);
mg.addSlice(0, slice);
slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#FFBB33"));
slice.setValue(3);
mg.addSlice(0, slice);
slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#AA66CC"));
slice.setValue(8);
mg.addSlice(0, slice);

slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#99CC00"));
slice.setValue(8);
mg.addSlice(1, slice);
slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#FFBB33"));
slice.setValue(5);
mg.addSlice(1, slice);
slice = new MultiSeriesDonutSlice();
slice.setColor(Color.parseColor("#AA66CC"));
slice.setValue(3);
mg.addSlice(1, slice);

Have fun!

Comments
  • Coverted the project to use gradle 1.9 and Android Studio 0.4.2+

    Coverted the project to use gradle 1.9 and Android Studio 0.4.2+

    Updates

    • Updated the targetSdk & compileSdk to 19
    • Project builds with gradle v1.9 via the command line or Android Studio 0.4.2
    • Dependencies are now resolved from maven central repo instead of local directories
    • In the root HoloGraphLibrary, gradle can now be ran to build the library and sample project in one command.
    opened by mdrabic 2
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 1
  • Library & Sample update

    Library & Sample update

    • SdkTarget is now 21 for both Library and Sample
    • Updated Library & Sample to use latest gradle and support library
    • Using AppCompat v7 instead of ActionBarSherlock for ActionBar support
    • Removed .idea from versioning (versioning .idea adds to many noise and isn't necessary)
    opened by jporsay 1
  • Add update() methods to BarGraph and PieGraph

    Add update() methods to BarGraph and PieGraph

    This matches the existing method in LineGraph.

    This is useful when some task is updating bar graph data, so that the graph can be updated as soon as data is available.

    opened by stephenjust 1
  • Update LineGraph.java

    Update LineGraph.java

    Multiply sidePadding for usableWidth with 2 (left+right)

    -> Otherwise a Point at the max value on X-axis is out of Fragment:

    Issue: http://www.abload.de/image.php?img=holographlibrary_linekdk1h.png

    Fix: http://abload.de/img/holographlibrary_linef7kq4.png

    PS.: I just tried it with my Fragments using the HoloEverywhere library

    opened by steinhoff1989 1
  • What Features?

    What Features?

    You claim to have additional features in your fork of the repo, but they are unclear. Please mention them in README.MD, or the Wiki, so we know what extras you have added to the Library.

    opened by sheharyarn 1
  • Extra features in MultiSeriesDonutChart and update readme

    Extra features in MultiSeriesDonutChart and update readme

    This addresses issue #34. The extra features are setting the size of the hole directly, and being able to toggle whether slices are selectable or not (they are selectable by default).

    opened by tpage-alfresco 0
  • Linegraph on smaller screen resolutions

    Linegraph on smaller screen resolutions

    Hi, I am using the sample code provided with the line graph, but I am encountering issues when I show the linegraph on devices with smaller screen resolutions ( <= 4''). Basically the lines and the points look thicker than they should be. On bigger screens this doesn't happen. Any ideas? Thanks.

    opened by dev-bre 0
  • updated Gradle Version and build.gradle and Others

    updated Gradle Version and build.gradle and Others

    updated appCompat-v7 and support-v4 to latest version updated build.gradle of Top-level build file updated buildTools to latest version

    I opened gitignore to check why *.iml files were staged to commit but it's for version control, so I committed with all.

    opened by kimkevin 0
  • Popular Android library badge

    Popular Android library badge

    I'm generating badges to highlight popular open source Android libraries. If you would like to include it, I've added it to the README. If not, no problem! Let me know if you have any questions. Cheers!

    opened by libtastic 0
  • Question on PieChart slices

    Question on PieChart slices

    Hi,

    I would like to display a pie chart with two slices based on the users usage per month.

    For example: if usage of the user is 0.92 (and monthly limit is 2)

    then two slices have to be represented in the pie chart:

    Slice 1: 0.92 in green color Slice 2: 2 - 0.92 (monthly limit - users usage) in gray color

    When I am using percentage for representing it.. It is not displaying correctly. Please help me how to achieve this. Thanks in advance.

    opened by neerajakshid 0
A fork of CloudStream-3, with additional features and changes

CloudStream-3XXX A fork of CloudStream-3, with additional features and changes. Features All features of CloudStream 3, corresponding to this commit h

Jace 138 Nov 14, 2022
Vanilla Music Player for Android (abandoned). Visit https://github.com/vanilla-music/vanilla for an actively developed fork

Translating You can help translate here. If your language isn't on the list, open an issue and I can add it. Building To build you will need: A Java c

Chris Eby 155 Dec 28, 2021
A fork of our clean architecture boilerplate using the Model-View-Intent pattern

Android Clean Architecture MVI Boilerplate Note: This is a fork of our original Clean Architecture Boilerplate, except in this repo we have switched o

Buffer 966 Nov 10, 2022
A fork of our clean architecture boilerplate, this time using the Android Architecture Components

Android Clean Architecture Components Boilerplate Note: This is a fork of our original Clean Architecture Boilerplate, except in this repo we have swi

Buffer 1.3k Nov 14, 2022
Fork of svg-android +SVN history +Maven +more

Status: Unmaintained. Discontinued. This project is no longer being developed or maintained. _ This is forked from the awesome but unmaintained: http:

David Barri 556 Nov 11, 2022
Unofficial, FOSS-friendly fork of the original Telegram client for Android

or 1McafEgMvqAVujNLtcJumZHxp2UfaNByqs Telegram-FOSS Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free. T

null 2k Nov 29, 2022
Highly optimized Airplane fork focusing on stability and performance.

Sugarcane Highly optimized Airplane fork focusing on stability and performance. NOTE: We borrow some patches from Yatopia Reminder This project is sti

SugarcaneMC 91 Nov 11, 2022
A FDPClient fork , It aims to add more modules.

LightClient A FDPClient fork , It aims to add more modules. You can download development version at Github-Actions , Release at Release Only running o

Ad973_ 3 Aug 26, 2021
Kotlin Multiplatform lifecycle-aware business logic components (aka BLoCs) with routing functionality and pluggable UI (Jetpack Compose, SwiftUI, JS React, etc.), inspired by Badoos RIBs fork of the Uber RIBs framework

Decompose Please see the project website for documentation and APIs. Decompose is a Kotlin Multiplatform library for breaking down your code into life

Arkadii Ivanov 776 Nov 24, 2022
Fork of kord, mainly used for Voice

Kord Kord is still in an experimental stage, as such we can't guarantee API stability between releases. While we'd love for you to try out our library

Mixtape OSS 4 Jun 7, 2022
A high-performance fork of Paper/Airplane designed for large servers.

Pufferfish A highly optimized Paper/Airplane fork designed for large servers requiring both maximum performance, stability, and "enterprise" features.

Pufferfish Studios LLC 384 Nov 25, 2022
Fork from AntiZhaPian , upgrade to add more customizeable info

Fork from AntiZhaPian , upgrade to add more customizeable info

Noob Zhang 13 Oct 30, 2022
Minecraft Server Software specially designed for Thicc SMP. Here on GitHub without the private patches, just a normal hybrid JettPack-Pufferfish-Empirecraft fork

AlynaaMC A private, custom server software for Thicc SMP and a fork of Pufferfish. Here on GitHub with patches from JettPack, Airplane and Pufferfish

ThiccMC 14 Dec 31, 2021
A Paper fork with secure feature seed based on Secure Seed mod by Earthcomputer

GitHub | Download | Discord Matter Matter is a Paper fork that currently only adds what we call a secure feature seed. Based on Secure Seed mod by Ear

Plasmo 51 Nov 8, 2022
A fork from Paper and unofficial Airplane continuation for RedeObscurity.

Obscurity A fork from Paper and unofficial Airplane continuation for RedeObscurity. Features Downloads This fork is in a state of development. If you

null 0 Jan 6, 2022
ForkTest - A Paper fork, using paperweight

ForkTest - A Paper fork, using paperweight This is an example project, showcasin

null 1 Jan 17, 2022
WolfxPaper - A Paper fork designed for Wolfx Survial, may useful for some Semi-Vanilla Server

WolfxPaper A Paper fork designed for Wolfx Survial, may useful for some "Semi-Va

TenkyuChimata 1 Jan 19, 2022
The Launcher3 fork known as Rootless Pixel Launcher

The Launcher3 fork known as Rootless Pixel Launcher

Amir Zaidi 3.7k Nov 22, 2022
A sussy 1.17.1 Airplane fork that (hopefully) has better performance and relatively stable

Fiadelity A sussy Minecraft server software This project is experimental, its usage in production environment is discouraged if you are not ready to f

null 4 Jul 28, 2022
A fork of nb-javac for Android.

nb-javac-android nb-javac is a patched version of OpenJDK "javac", i.e., the Java compiler. This has long been part of NetBeans, providing a highly tu

Akash Yadav 15 Nov 7, 2022