title: stacked Bar charts in Bokeh
body: <p>I am drawing bar charts with Bokeh( <a href="http://docs.bokeh.org/en/latest/docs/user_guide.html" rel="nofollow noreferrer">http://docs.bokeh.org/en/latest/docs/user_guide.html</a> ). It is an amazing tool but at the same time I think it is a little bit immature currently. I have a stacked bar chart with 30 categories on x axis and 40 classes corresponding to each category. I am not able to find out the function that can enable me to change colors (colors right now are very ambiguous) and align legend to top. Alternatively, if a information box can be opened when someone hovers over that color, that can be helpful. I have a very little clue if that can be done. </p>
  
  <p><a href="http://docs.bokeh.org/en/latest/docs/user_guide/charts.html#bar" rel="nofollow noreferrer">http://docs.bokeh.org/en/latest/docs/user_guide/charts.html#bar</a></p>
  
  <p>My example is similar to this one except that I have many variables.</p>
  
  <p>Any suggestions?
  UPDATE:
  I tried myself the below solution but it looks like there is some problem with Bar(). It does not recognize Bar().</p>
  
  <pre><code>import bokeh.plotting as bp
  data24 =OrderedDict()
  for i in range(10):
      data24[i] = np.random.randint(2, size=10)
  figut = bp.figure(tools="reset, hover") 
  s1 = figut.Bar(data24, stacked= True,color=colors )
  s1.select(dict(type=HoverTool)).tooltips = {"x":"$index"}
  </code></pre>
  
  <p>Running it I get: </p>
  
  <pre><code>AttributeError: 'Figure' object has no attribute 'Bar'
  </code></pre>
  
  <p>Here are the bar colors that I am getting. There is no way to distinguish between colors.
  <img src="https://i.stack.imgur.com/mHVq2.png" alt="enter image description here"></p>