{"id":13848462,"url":"https://github.com/Androguide/HoloGraphLibrary","last_synced_at":"2025-07-12T13:31:11.768Z","repository":{"id":9632456,"uuid":"11562874","full_name":"Androguide/HoloGraphLibrary","owner":"Androguide","description":"Fork of the HoloGraphLibrary by Daniel Nadeau with additionnal features","archived":false,"fork":false,"pushed_at":"2017-10-30T12:15:43.000Z","size":424,"stargazers_count":534,"open_issues_count":22,"forks_count":184,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-08-05T19:35:38.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bitbucket.org/danielnadeau/holographlibrary","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Androguide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-21T14:35:12.000Z","updated_at":"2024-05-07T06:15:42.000Z","dependencies_parsed_at":"2022-09-22T17:51:37.445Z","dependency_job_id":null,"html_url":"https://github.com/Androguide/HoloGraphLibrary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Androguide%2FHoloGraphLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Androguide%2FHoloGraphLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Androguide%2FHoloGraphLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Androguide%2FHoloGraphLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Androguide","download_url":"https://codeload.github.com/Androguide/HoloGraphLibrary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225825266,"owners_count":17529905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:00:49.840Z","updated_at":"2024-11-22T00:30:26.512Z","avatar_url":"https://github.com/Androguide.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Chart\"\u003e\u003c/A\u003eChart"],"readme":"HoloGraphLibrary\n================\n\nFork of the HoloGraphLibrary by Daniel Nadeau, with additionnal features\n\n# Welcome\n\nThis is a library written to allow beautiful graphs and charts to be easily incorporated into your Android application. Included are: \n* LineGraph view\n* BarGraph view\n* PieGraph view\n* MultiSeriesDonutGraph view\n\n![LineGraph](https://lh3.googleusercontent.com/-Pr5nzXngxZo/US0_RKH9DGI/AAAAAAAAS1s/an4cS3Nr4qY/s844/13+-+1)\n![BarGraph](https://lh3.googleusercontent.com/-9vy9Bvclx24/US0_RIZpl7I/AAAAAAAAS2o/k3Tpb2sIoFw/s844/13+-+3)\n![PieGraph](https://lh6.googleusercontent.com/-Ad0lLdyK1cA/US0_RBYcqKI/AAAAAAAAS20/lQ8zLo_VSiQ/s844/13+-+5)\n![MultiSeriesDonutGraph](https://cloud.githubusercontent.com/assets/11535082/10306580/f81830b0-6c1f-11e5-9f47-2d52b38df2b0.png)\n\n## Usage\n\n# LineGraph View\n\n```xml\n\n\u003ccom.echo.holographlibrary.LineGraph\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dp\"\n        android:id=\"@+id/graph\"/\u003e\n```\n\n```java\n\nLine l = new Line();\nLinePoint p = new LinePoint();\np.setX(0);\np.setY(5);\nl.addPoint(p);\np = new LinePoint();\np.setX(8);\np.setY(8);\nl.addPoint(p);\np = new LinePoint();\np.setX(10);\np.setY(4);\nl.addPoint(p);\nl.setColor(Color.parseColor(\"#FFBB33\"));\n\t\t\nLineGraph li = (LineGraph)findViewById(R.id.graph);\nli.addLine(l);\nli.setRangeY(0, 10);\nli.setLineToFill(0);\n```\n\n# BarGraph View\n\n```xml\n\n\u003ccom.echo.holographlibrary.BarGraph\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dp\"\n        android:id=\"@+id/graph\"/\u003e\n```\n\n```java\n\nArrayList\u003cBar\u003e points = new ArrayList\u003cBar\u003e();\nBar d = new Bar();\nd.setColor(Color.parseColor(\"#99CC00\"));\nd.setName(\"Test1\");\nd.setValue(10);\nBar d2 = new Bar();\nd2.setColor(Color.parseColor(\"#FFBB33\"));\nd2.setName(\"Test2\");\nd2.setValue(20);\npoints.add(d);\npoints.add(d2);\n\nBarGraph g = (BarGraph)findViewById(R.id.graph);\ng.setBars(points);\ng.setUnit(\"$\");\n```\n\n# PieGraph View\n\n```xml\n\n\u003ccom.echo.holographlibrary.PieGraph\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dp\"\n        android:id=\"@+id/graph\"/\u003e\n```\n\n```java\n\nPieGraph pg = (PieGraph)findViewById(R.id.graph);\nPieSlice slice = new PieSlice();\nslice.setColor(Color.parseColor(\"#99CC00\"));\nslice.setValue(2);\npg.addSlice(slice);\nslice = new PieSlice();\nslice.setColor(Color.parseColor(\"#FFBB33\"));\nslice.setValue(3);\npg.addSlice(slice);\nslice = new PieSlice();\nslice.setColor(Color.parseColor(\"#AA66CC\"));\nslice.setValue(8);\npg.addSlice(slice);\n```\n\n#MultiSeriesDonutGraph View\n\n```xml\n\n\u003ccom.echo.holographlibrary.MultiSeriesDonutGraph\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"200dp\"\n        android:id=\"@+id/graph\"/\u003e\n```\n\n```java\n\nMultiSeriesDonutGraph mg = (MultiSeriesDonutGraph) v.findViewById(R.id.multiseriesdonutgraph);\n\nMultiSeriesDonutSlice slice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#99CC00\"));\nslice.setValue(2);\nmg.addSlice(0, slice);\nslice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#FFBB33\"));\nslice.setValue(3);\nmg.addSlice(0, slice);\nslice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#AA66CC\"));\nslice.setValue(8);\nmg.addSlice(0, slice);\n\nslice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#99CC00\"));\nslice.setValue(8);\nmg.addSlice(1, slice);\nslice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#FFBB33\"));\nslice.setValue(5);\nmg.addSlice(1, slice);\nslice = new MultiSeriesDonutSlice();\nslice.setColor(Color.parseColor(\"#AA66CC\"));\nslice.setValue(3);\nmg.addSlice(1, slice);\n```\n\n\nHave fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndroguide%2FHoloGraphLibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndroguide%2FHoloGraphLibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndroguide%2FHoloGraphLibrary/lists"}