I trying to make a chart with MPAndroidChar that showing on each year 3 semesters (Each semester is painted a different color) and on the top of each semester there is the avearage grades of the semester.

I Sucess to build a chart, but i dont know how to group all the semesters on 1 year.

I attached the Bar code, the xml and screenshoot after i run the app.
The code:

```
BarChart chart = (BarChart) findViewById(R.id.chart);
        ArrayList<BarEntry> vals1 = new ArrayList<BarEntry>();
        ArrayList<BarEntry> vals2 = new ArrayList<BarEntry>();

        ArrayList<BarEntry> entries = new ArrayList<>();

        entries.add(new BarEntry(90, 0)); //year 1 - sem 1
        entries.add(new BarEntry(69, 1)); //year 1 - sem 2
        entries.add(new BarEntry(96, 2)); //year 1 - sem 3
        BarDataSet dataset = new BarDataSet(entries, "# of Calls");

        ArrayList<String> labels = new ArrayList<String>();
        labels.add("year 1");
        labels.add("year 1");
        labels.add("year 1");
        BarData data = new BarData(labels, dataset);
        chart.setData(data);

        chart.setDescription("# of times Alice called Bob");

```

BarChart.xml

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/bottomSection"
        android:padding="10dp">
        <com.github.mikephil.charting.charts.BarChart
            android:id="@+id/chart"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
    </LinearLayout>
</LinearLayout>

```

**The code result:**

[![enter image description here](https://i.stack.imgur.com/7DTwz.png)](https://i.stack.imgur.com/7DTwz.png)

**What i want (sorry about the worst editing) :**

[![enter image description here](https://i.stack.imgur.com/YH6cL.png)](https://i.stack.imgur.com/YH6cL.png)