# Bar charts with categorical data

**URL:** https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615
**Category:** Development
**Created:** [October 9, 2022, 2:42pm UTC](https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615 "2022-10-09T14:42:54Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [October 9, 2022, 10:24pm UTC](https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615/5 "2022-10-09T22:24:24Z")

</div>

There’s a lot of [underlying functionality](https://www.na-mic.org/w/img_auth.php/1/18/NA-MIC-VTK-Charts-2011.pdf) and it could be extended and exposed in Slicer.

If you are feeling adventurous [this pyqtgraph example](https://discourse.slicer.org/t/pythonqt-properties-shadowing-methods/16992/9) apparently works.

But maybe the safest and easiest would be to [use maplotlib](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#using-matplotlib) maybe with [seaborn](https://seaborn.pydata.org/generated/seaborn.barplot.html). It’s not fully integrated with slicer though, so some extra work would be required to make it show up in a layout.

---

_[View the full topic](https://discourse.slicer.org/t/bar-charts-with-categorical-data/25615)._
