In [2]:
data = {"y": [6, 7, 2, 4, 5], "z": [1, 5, 12, 4, 2]}

In [3]:
from bokeh.io import output_notebook
output_notebook()


BokehJS successfully loaded.

In [4]:
from bokeh.charts import Bar
p = Bar(data, cat=['C1', 'C2', 'C3', 'D1', 'D2'], title="Bar example",
xlabel='categories', ylabel='values', width=400, height=400)

In [8]:
renderer = p.renderers[-1]

In [13]:
renderer.data_source.data


Out[13]:
{'cat': ['C1', 'C2', 'C3', 'D1', 'D2'],
 'caty': ['C1:0.666666666667',
  'C2:0.666666666667',
  'C3:0.666666666667',
  'D1:0.666666666667',
  'D2:0.666666666667'],
 'catz': ['C1:0.333333333333',
  'C2:0.333333333333',
  'C3:0.333333333333',
  'D1:0.333333333333',
  'D2:0.333333333333'],
 'midy': array([ 3. ,  3.5,  1. ,  2. ,  2.5]),
 'midz': array([ 0.5,  2.5,  6. ,  2. ,  1. ]),
 'stackedy': array([  4. ,   8.5,  13. ,   6. ,   4.5]),
 'stackedz': array([ 0.5,  2.5,  6. ,  2. ,  1. ]),
 'width': [0.8, 0.8, 0.8, 0.8, 0.8],
 'width_cat': [0.2, 0.2, 0.2, 0.2, 0.2],
 'y': [6, 7, 2, 4, 5],
 'z': [1, 5, 12, 4, 2],
 'zero': array([  7.,  12.,  14.,   8.,   7.])}

In [6]:
from bokeh.io import show
show(p)


ERROR:/home/bird/Dev/bokeh/bokeh/bokeh/validation/check.py:W-1003 (MALFORMED_CATEGORY_LABEL): Category labels are malformed: [field:caty] [first_value: C1:0.333333333333] [renderer: GlyphRenderer, ViewModel:GlyphRenderer, ref _id: 3ad8d365-63af-420c-a0f0-7318cccd1047]
ERROR:/home/bird/Dev/bokeh/bokeh/bokeh/validation/check.py:W-1003 (MALFORMED_CATEGORY_LABEL): Category labels are malformed: [field:catz] [first_value: C1:0.666666666667] [renderer: GlyphRenderer, ViewModel:GlyphRenderer, ref _id: c6d7cbb9-d53a-4714-9ab5-1094c6774344]

In [ ]: