110

I am working on a project which have some charts (graphs), tick chart, candlestick chart and range chart. But the problem is, there is no library for that charts. I have got Google chart API for candlestick chart. But I don't want graph/chart in a webview.

Example: Android Candlestick Chart with Google Chart API

Artyom Ionash
  • 405
  • 7
  • 17
ASP
  • 1,974
  • 3
  • 18
  • 30
  • 5
    duplicate of [How to draw charts in Android?](http://stackoverflow.com/questions/2271248/how-to-draw-charts-in-android) and http://stackoverflow.com/questions/4675787/candlestick-charts-component-for-android and http://stackoverflow.com/questions/5156740/im-looking-for-fancy-charts-library-for-android and http://stackoverflow.com/questions/7730827/android-charts-achartengine-or-androidplot and http://stackoverflow.com/questions/424752/any-good-graphing-packages-for-android and http://stackoverflow.com/questions/3424226/is-there-a-good-charting-library-for-android and many others – CommonsWare Mar 17 '12 at 11:27
  • 1
    Got a solution.... link for screenshotz http://afreechart.googlecode.com/svn/doc/screenshot/index.html and the sample code: http://code.google.com/p/afreechart/source/browse/trunk/ Anyway, thanks @CommonsWare for ur quick response. – ASP Mar 18 '12 at 05:49
  • 1
    @ASP is it possible to print those charts in a pdf? – cascadox Oct 22 '12 at 17:56
  • Simple example here http://stackoverflow.com/questions/26543739/how-to-draw-a-graph-in-android-using-graphview/26562713#26562713 – Nabin Oct 30 '14 at 13:40

2 Answers2

261

To make reading of this page more valuable (for future search results) I made a list of libraries known to me.. As @CommonsWare mentioned there are super-similar questions/answers.. Anyway some libraries that can be used for making charts are:

Open Source:

Paid:

** - means I didn't try those so I can't really recommend it but other users suggested it..

James
  • 1,305
  • 11
  • 20
Ewoks
  • 12,285
  • 8
  • 58
  • 67
  • which one is the best or recommended one from open source – Prabs Jan 02 '17 at 05:45
  • 1
    For 3D PieCharts Google APIs are deprecated, any other option available? – Sachchidanand Jan 12 '17 at 12:44
  • @Guarav any link to make sure they are deprecated?! – Ewoks Jan 12 '17 at 12:48
  • 4
    I just evaluated MPAndroidChart, HoloGraphLibrary, and HelloCharts. I attempted to evaluate a few others, but the links are broken. I selected MPAndroidChart because it has good docs and was able to get it imported into my project, and a working skeleton in a few minutes. HelloCharts and HoloGraphLibrary also look good. Although I had a bit of trouble installing HoloGraphLibrary because of gradle version errors. – MikeyE Apr 14 '17 at 02:55
  • I updated 1 link that I found broken. Let me know if there are more so we can fix them.. thanks for the comment, it is useful for others ;) – Ewoks Apr 14 '17 at 09:05
  • 1
    MPAndroidChart seems to be a very complete and customizable option for me. I have only sight checked a few more options, but I can only say good things about MPAndroidChart. – xarlymg89 Jun 14 '18 at 10:53
  • I want to plot multiple lines in a line chart. These lines intersect with each other and I want to highlight the intersecting points. Which library should I use? – Sandeep Yohans Aug 17 '18 at 05:43
  • I suggest Plot.ly for dynamic graphs to plot. – Bay Sep 19 '19 at 19:02
  • 1
    @Bay feel free to edit original response and add link to it in respective section – Ewoks Sep 19 '19 at 19:03
4

SciChart for Android is a relative newcomer, but brings extremely fast high performance real-time charting to the Android platform.

SciChart is a commercial control but available under royalty free distribution / per developer licensing. There is also free licensing available for educational use with some conditions.

Some useful links can be found below:

enter image description here

Disclosure: I am the tech lead on the SciChart project!

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178