title: MPAndroidChart - Why BarData constructor not work?
body: <p>My code:</p>
  
  <pre><code> public BarData getBarData(String fieldName) {
          ArrayList&lt;BarEntry&gt; entries = new ArrayList&lt;&gt;();
          entries.add(new BarEntry(this.house.Population, 0));
          entries.add(new BarEntry(this.currentStore.Population, 1));
  
          ArrayList&lt;String&gt; labels = new ArrayList&lt;String&gt;();
          labels.add("house");
          labels.add("store" + this.currentStore.StoreName);
  
          List&lt;BarDataSet&gt; dataSets = new ArrayList&lt;&gt;();
          dataSets.add(new BarDataSet(entries, fieldName));
  
          return new BarData(labels, dataSets);
  }
  </code></pre>
  
  <p>According to the document, the BarData constructor is like the code above. But why Android Studio always tell me there is something wrong?</p>
  
  <p>Error message:</p>
  
  <pre><code>Error:(97, 16) error: constructor BarData in class BarData cannot be applied to given types;
  required: IBarDataSet[]
  found: List&lt;String&gt;,List&lt;BarDataSet&gt;
  reason: varargs mismatch; List&lt;String&gt; cannot be converted to IBarDataSet
  </code></pre>
  
  <p>Please give me some information. I really need someone's help.</p>
  
  <p>Thanks.</p>