Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free chart library for creating lines, bar (stacked & grouped) and combined in Android

Tags:

android

charts

I have an application in which I need to create below types of charts:

  • Lines
  • Bar/Column (grouped and stacked)
  • Combined (lines and bar)

In addition, it will be good to have below features if possible:

  • Support
  • Package constantly updated (not out-dated)
  • Well documented
  • Easy to integrate

I have seen a lot of them:

  • Grap View
  • AChartEngine
  • Charts4j
  • afreechart
  • HelloCharts for android

Grap View Looks like it is well-documented, it has support and it is updated constantly. Also easy to integrate but I do not see it supports creation of stacked and grouped bar charts... so it is not good for me. Could anyone confirm me if it is possible to create grouped and stacked bar charts with it?

AChartEngine It seems like it has not support for grouped bar charts. It is out-dated (last version May 2013), and it does not explain how to integrate it. It seems well-documented and with support as it has a discussion group.

Could anyone confirm me if it supports grouped charts?

Charts4j Well-documented, supports grouped and stacked bar charts. Also line charts but I am not sure if it supported combined graphs (bar with lines) so anyone can confirm me?

It is out-dated... last version comes from January 2011.

afreechart A lot of chart types, including lines, grouped bar charts but.... it seems it has no support for stacked bar charts..... someone can confirm this? Out-dated as last version is April 2012. I cannot see an explanation on how to integrate it.

HelloCharts It supports all the chart types I am searching for: lines, column/bar (grouped and stacked supported). Also it is possible to combine line with bar charts.

It explains briefly how to integrate it with different options and a quick guide on how to start using it. It seems easy to integrate.

From git it seems very updated. It has examples but I cannot see any API documentation or documentation of any other type or even a wiki page. Creating issues or make questions it is possible by creating in issue from its page.

Conclusion Regarding to my needs, I think I am going to use HelloCharts but before doing this I would like to someone confirm me my doubts about the other packages and share opinions on what package is best for me to use according to my needs.

like image 665
Ralph Avatar asked Jan 19 '15 12:01

Ralph


People also ask

Where can I make a bar graph for free?

Canva's bar graph maker is ridiculously easy to use. We've made the process as simple and intuitive as possible – simply click to change the labels. And unlike other bar graph makers, Canva's templates are created by professional designers. Tweak them to your tastes by adjusting the colors, fonts and more.

How do I make a 100% stacked bar chart?

In a 100% stacked bar chart, the bars are split into colored bar segments placed on top of each other. Each bar height is 100%, and the colored bar segments represent the components' relative contributions to the total bar.


1 Answers

Have you looked into charting libraries for the web? You can add charts inside your android app by using a WebView and enabling javascript

setJavaScriptEnabled(true)    

Theres quite a selection of charts in javascript:

d3js

ZingChart

chartjs

I personally use ZingChart; it has svg support for high pixel density devices and recognizes touch input. It's free with a watermark.

like image 151
mike-schultz Avatar answered Oct 13 '22 22:10

mike-schultz