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

histograms_chart

< chord_chart | back to Gallery | iris_scatter_chart >

          from bokeh.charts import Histogram, output_file, show
          from bokeh.sampledata.autompg import autompg as df
          
          df.sort('cyl', inplace=True)
          
          hist = Histogram(df, values='hp', color='cyl',
                           title="HP Distribution by Cylinder Count", legend='top_right')
          
          output_file("histogram_single.html", title="histogram_single.py example")
          
          show(hist)