I want to create a timeline with bars. It represents different tariff/rates during the day. For example, between 12am and 7am the rate is 10.
How can I implement it using MPAndroidChart?
I want to create a timeline with bars. It represents different tariff/rates during the day. For example, between 12am and 7am the rate is 10.
How can I implement it using MPAndroidChart?
You can achieve such grouping with removing space between bars and setting values for all entries(not just to group), they will stick to each other and you will get group with:
data.setBarWidth(1f);
1f
is 100%
width of bar, and there will not be space between 2 of them:
Barchart bars have always the same width. But you can't make space between you groups.