Have you drawn the logcat values that the chart should display? They may not be stored correctly in the database.
Your code seems correct to me.
You can also check it by simply providing a predefined value, for example, for example. 50 for all the bars and see if it is built correctly.
To change the color call:
BarDataSet.setColor(...);
UPDATE . There is currently a very detailed guide to creating grouped BarCharts , available on the official GitHub page of the library, based on version v3.0.0: Group training on BarChart
source share