This is a simple custom view that help you create columns charts in you Android application.
This project includes two parts, library project and demo project. You can pull this project and run it as normal Android application to see how it works. To use the view in your project, you need:
-
Copy the chartviewlibrary folder into your Android project and include it as a library.
-
Add PricingChart to your xml layout file like this:
<com.skedgo.pricingchart.PricingChart android:id="@+id/pricing_chart_view" android:layout_width="match_parent" android:layout_height="100dp" android:layout_centerInParent="true" />
-
Refer that view in your java code and set its data by using its setData method. That method receives a list of double values in the range from 0.0 to 1.0, which represent percent values.