Duplicate x-axis value in MPAndroidchart library
<pre><code>//map: {2-6-2016=[120.0], 27-5-2016=[100.0], 1-6-2016=[78.0, 59.0]}

LineChart lineChart = (LineChart) findViewById(R.id.chart);
 ArrayList&lt;Entry&gt; graphYValues = new ArrayList&lt;&gt;();
        ArrayList&lt;String&gt; xLabels = new ArrayList&lt;String&gt;();

for (Map.Entry&lt;String, List&lt;Float&gt;&gt; mapKeySet : map.entrySet()) {
                List&lt;Float&gt; lsValue = mapKeySet.getValue();

                for (float v : lsValue) {
                    graphYValues.add(new Entry(v, i));//value ,index
                   xLabels.add(mapKeySet.getKey());//if same label -x-axis have multiple y-axis value on same x-label axis
               }

                i++;
            }
   LineDataSet dataset = new LineDataSet(graphYValues,"Graph for "+spTestSubElement.getSelectedItem().toString());
 LineData data = new LineData(xLabels,dataset);
   lineChart.setData(data); 
</code></pre>

<p><a href="https://i.stack.imgur.com/5jqI2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5jqI2.png" alt="enter image description here"></a></p>

<p>It created duplicate entry for x-axis label.How can plot graph for multiple y values on same x-axis point ?How to solve this issue.</p>