Multicolor chat in android

I am working on an android application. In my application, I need to show a multi-color histogram as shown below. multicolor bar chart

I searched a lot on the net, but received various offers about libraries. Finally, I found the only chart4j solution. On this page, their graph chart also shows several colors. But there I only get Java code, but I could not make it as an Android application.

I have one app for Android example using 4j diagrams from here . But its an exception to provide.

FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.googlecode.charts4j.Data 

So please try to help me find a solution to display a multi-color chart. thanks in advance

+4
source share
1 answer

I resolved the exception by creating a folder named libs, not lib. The reason for using libs is

Current Android build tools (Eclipse and command line) expect the JARs to be in the libs / directory. It will automatically add these JARs to your compilation build path. More importantly, it will put the contents of the JAR in your APK file, so they will be part of your build path at runtime.

Using lib / and mucking with your manual build path will solve the compile time problem, but then your JAR content is not in your APK and therefore will not be available to you at run time.

+1
source

All Articles