Boxplot Chart#

Download this notebook from GitHub (right-click to download).


Most examples work across multiple plotting backends, this example is also available for:

import holoviews as hv
from holoviews import dim
hv.extension('bokeh')

Declaring data#

from bokeh.sampledata.autompg import autompg as df

title = "MPG by Cylinders and Data Source, Colored by Cylinders"
boxwhisker = hv.BoxWhisker(df, ['cyl', 'origin'], 'mpg', label=title)

Plot#

boxwhisker.opts(show_legend=False, width=600, box_fill_color=dim('origin').str(), cmap='Set1')
This web page was generated from a Jupyter notebook and not all interactivity will work on this website. Right click to download and run locally for full Python-backed interactivity.

Download this notebook from GitHub (right-click to download).