title: How to control StackedBarChart colours?
body: <p>I'm using <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">mpandroidchart </a> to create a StackedBarChart. My stacks have a varied number of values - some have 8, some have 10. I'd like to be able to control the colour of each value based on its index in the stack. Furthermore, some have values that are 0, so it will look like they've got 1 less value.</p>
  
  <p>eg
  1st item in all stacks is red</p>
  
  <p>2nd item is all stacks is blue etc.</p>
  
  <p>This code doesn't work;</p>
  
  <pre><code>    BarDataSet mySet = new BarDataSet(MyList, "MyName");
      mySet.setColors(new int[]{R.color.stackbarchart_f0, R.color.stackbarchart_f1, R.color.stackbarchart_f2, R.color.stackbarchart_f3, R.color.stackbarchart_f4, R.color.stackbarchart_f5, R.color.stackbarchart_f6, R.color.stackbarchart_f7, R.color.stackbarchart_f8, R.color.stackbarchart_f9, R.color.stackbarchart_f10}, this);
  </code></pre>
  
  <p>It just loops through the colours, and seemingly ignore blocks with a value of 0. This means if a block has 8 values, the next stack will start with the 9th colour. I want that next stack to re-start at the 1st colour. </p>