title: MPAndroidChart: Chart Not Displaying
body: <p>I added a BarChart into my project XML (snippet of layout below):</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/relative_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin" &gt;
  
   &lt;com.github.mikephil.charting.charts.BarChart
      android:id="@+id/chart"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;TextView
      android:id="@+id/stepsTitle_textView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:textSize="28sp"
      android:layout_below="@+id/chart"
      android:text="STEPS TODAY"
      android:layout_marginTop="8dp" /&gt;
  </code></pre>
  
  <p>And I added data to chart in my onCreate() method:</p>
  
  <pre><code>    chart = (BarChart) findViewById(R.id.chart);
      chart.setLogEnabled(true);
  
      chart.setDrawBarShadow(false);
      chart.setDrawValueAboveBar(true);
  
      chart.setDescription("");
  
      // if more than 60 entries are displayed in the chart, no values will be
      // drawn
       chart.setMaxVisibleValueCount(60);
  
      List&lt;String&gt; usernamesArray = new ArrayList&lt;String&gt;();
      //ArrayList&lt;Long&gt; stepsArray = new ArrayList&lt;Long&gt;();
      List&lt;BarEntry&gt; entryArray = new ArrayList&lt;BarEntry&gt;();
  
      usernamesArray.add("a");
      usernamesArray.add("b");
      usernamesArray.add("c");
  
      BarEntry entry1 = new BarEntry(500, 0);
      BarEntry entry2 = new BarEntry(500, 1);
      BarEntry entry3 = new BarEntry(500, 2);
      entryArray.add(entry1);
      entryArray.add(entry2);
      entryArray.add(entry3);
  
      BarDataSet dataSet = new BarDataSet(entryArray, "Steps");
      dataSet.setColor(Color.rgb(104, 241, 175));
      BarData data = new BarData(usernamesArray, dataSet);
      //graphRow.addView(chart);
      //leaderboard_tableLayout.addView(graphRow);
      //chart = new BarChart(this);
      chart.setData(data);
      chart.fitScreen();
      chart.setBackgroundColor(Color.WHITE);
      chart.invalidate();
  </code></pre>
  
  <p>However, the chart object is not displaying; in fact, I do not see anything at all in the place where the chart should be.</p>
  
  <p>Any thoughts on what I may be missing?  I can certainly provide more details if necessary.</p>
  
  <p>Thanks!</p>