This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

Bokeh Docs

dot_chart

< donut_chart | back to Gallery | chord_chart >

          from bokeh.charts import Dot, show, output_file
          
          # best support is with data in a format that is table-like
          data = {
              'sample': ['1st', '2nd', '1st', '2nd', '1st', '2nd'],
              'interpreter': ['python', 'python', 'pypy', 'pypy', 'jython', 'jython'],
              'timing': [-2, 5, 12, 40, 22, 30],
          }
          
          # x-axis labels pulled from the interpreter column, stacking labels from sample column
          dots = Dot(data, values='timing', label='interpreter',
                     group='sample', agg='mean',
                     title="Python Interpreter Sampling",
                     legend='top_right', width=600)
          
          output_file("dots.html", title="dots.py example")
          
          show(dots)