title: Chartkick column charts multiple colors
body: <p>I'm using <a href="http://ankane.github.io/chartkick/" rel="nofollow noreferrer">chartckick</a> in my RoR project to generate charts, which works quite nice. (along with Google Charts).</p>
  
  <p>I've created a <a href="http://ankane.github.io/chartkick/#chart-3" rel="nofollow noreferrer">column chart</a> with <strong>only 2 bars</strong> (male and female).</p>
  
  <p><img src="https://i.stack.imgur.com/WmnFH.png" alt="enter image description here"></p>
  
  <p>And now the client wants that each bar have different color? Is that possible?</p>
  
  <p>I've seen this post - <a href="https://stackoverflow.com/questions/22179365/how-to-change-the-color-of-a-column-chart-created-with-chartkick">How to change the color of a Column-chart created with Chartkick?</a> but it's more then half of year old and I'm hoping that there is a way now to specify more colors to the bars.</p>
  
  <p><strong>Update</strong></p>
  
  <p>My code looks like:</p>
  
  <p><em>Controller</em></p>
  
  <pre><code>@followers_gender_count = Project.find(params[:id]).followers.group(:gender).count
  </code></pre>
  
  <p><em>View</em></p>
  
  <pre><code>&lt;%= column_chart parse_gender_data(@followers_gender_count) %&gt;
  </code></pre>
  
  <p><em>Helper</em></p>
  
  <pre><code>def parse_gender_data(data)
    gender_data = Hash.new
    gender_data[:male] = data[1]
    gender_data[:female] = data[2]
    ({ 'Male' =&gt; gender_data[:male], 'Female' =&gt; gender_data[:female] })
  end
  </code></pre>
  
  <p><strong>Update 2</strong>
  - <a href="https://github.com/ankane/chartkick/issues/149" rel="nofollow noreferrer">Issue on GitHub</a></p>