TODO (soonish): we should make this into a dict instead, would be simpler:

```python
PLOT_KINDS = {"line": LinePlot,
 "bar": BarPlot,
 "barh": BarPlot,
 "kde": KdePlot,
 "cdf": CDFPlot}
# ... other stuff
if kind not in PLOT_KINDS:
   raise ValueError("Invalid chart type given: %s" % kind)
klass = PLOT_KINDS[kind]
```