Spaces:
Running
title: Visual Vocabulary
emoji: π¨
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: apache-2.0
short_description: Vizro - Visual vocabulary
Visual vocabulary
Welcome to our visual vocabulary dashboard! π¨
This dashboard serves as a comprehensive guide for selecting and creating various types of charts. It helps you decide when to use each chart type, and offers sample Python code using Plotly, and instructions for embedding these charts into a Vizro dashboard.
The charts in this dashboard are designed to make it easy for anyone to create beautiful and sophisticated visuals.
Our goal is to help you understand best practices in data visualization, ensure your charts effectively communicate your message, and streamline the creation of high-quality, interactive visualizations.
Created by:
Images created by QuantumBlack
Inspired by:
The FT Visual Vocabulary: Alan Smith, Chris Campbell, Ian Bott, Liz Faunce, Graham Parrish, Billy Ehrenberg, Paul McCallum, Martin Stabe.
The Graphic Continuum: Jon Swabish and Severino Ribecca
Credits and sources:
- Charting library: Plotly
- Plotly Express chart examples: Plotly Express
- Data visualization best practices: Guide to data chart mastery
Chart types
The dashboard is still in development. Below is an overview of the chart types for which a completed page is available.
Chart Type | Status | Category | Credits & sources | API |
---|---|---|---|---|
Arc | β | Part-to-whole | ||
Area | β | Time | Filled area plot with px | px.area |
Bar | β | Magnitude | Bar chart with px | px.bar |
Barcode | β | Distribution | ||
Beeswarm | β | Distribution | ||
Boxplot | β | Distribution | Box plot with px | px.box |
Bubble | β | Correlation | Scatter plot with px | px.scatter |
Bubble map | β | Spatial | Bubble map in px | px.scatter_map |
Bubble timeline | β | Time | ||
Bullet | β | Magnitude | ||
Bump | β | Ranking | ||
Butterfly | β | Deviation, Distribution | Pyramid charts in Plotly | go.Bar |
Chord | β | Flow | ||
Choropleth | β | Spatial | Choropleth map with px | px.choropleth |
Column | β | Magnitude, Time | Bar chart with px | px.bar |
Column and line | β | Correlation, Time | Multiple chart types in Plotly | go.Bar and go.Scatter |
Connected scatter | β | Correlation, Time | Line plot with px | px.line |
Cumulative curve | β | Distribution | ||
Diverging bar | β | Deviation | Bar chart with px | px.bar |
Diverging stacked bar | β | Deviation | Plotly forum - diverging stacked bar | go.Bar |
Donut | β | Part-to-whole | Pie chart with px | px.pie |
Dot map | β | Spatial | Bubble map in px | px.scatter_map |
Dumbbell | β | Distribution | Dumbbell plots in Plotly | px.scatter and add_shape |
Fan | β | Time | ||
Flow map | β | Spatial | ||
Funnel | β | Part-to-whole | Funnel plot with px | px.funnel |
Gantt | β | Time | Gantt chart with px | px.timeline |
Gridplot | β | Part-to-whole | ||
Heatmap | β | Time | Heatmaps with px | px.density_heatmap |
Correlation matrix | β | Correlation | ||
Histogram | β | Distribution | Histograms with px | px.histogram |
Line | β | Time | Line plot with px | px.line |
Lollipop | β | Ranking, Magnitude | ||
Marimekko | β | Magnitude, Part-to-whole | ||
Network | β | Flow | ||
Ordered bar | β | Ranking | Bar chart with px | px.bar |
Ordered bubble | β | Ranking | ||
Ordered column | β | Ranking | Bar chart with px | px.bar |
Paired bar | β | Magnitude | Histograms with px | px.histogram |
Paired column | β | Magnitude | Histograms with px | px.histogram |
Parallel coordinates | β | Magnitude | Parallel coordinates plot with px | px.parallel_coordinates |
Pictogram | β | Magnitude | ||
Pie | β | Part-to-whole | Pie chart with px | px.pie |
Radar | β | Magnitude | Radar chart with px | px.line_polar |
Radial | β | Magnitude | ||
Sankey | β | Flow | Sankey diagram in Plotly | go.Sankey |
Scatter | β | Correlation | Scatter plot with px | px.scatter |
Scatter matrix | β | Correlation | Scatter matrix with px | px.scatter_matrix |
Slope | β | Ranking, Time | ||
Sparkline | β | Time | ||
Stacked bar | β | Part-to-whole | Histograms with px | px.histogram |
Stacked column | β | Part-to-whole | Histograms with px | px.histogram |
Stepped line | β | Time | Line plot with px | px.line |
Surplus deficit line | β | Deviation | ||
Treemap | β | Part-to-whole | Treemap with px | px.treemap |
Venn | β | Part-to-whole | ||
Violin | β | Distribution | Violin plot with px | px.violin |
Waterfall | β | Part-to-whole, Flow | Waterfall charts in Plotly | go.Waterfall |
How to contribute
Contributions are welcome! To contribute a chart, follow the steps below:
- Check that a
svg
file named after the chart type is contained in the assets folder. If not, raise an issue in the repository. - Add the data set to
_pages_utils.py
if it doesn't already exist. Use existing data sets preferably or any other data set that is publicly available e.g. plotly.express.data - Create a new page for the chart type and add it to the relevant category
.py
file such ascorrelation.py
,deviation.py
,distribution.py
, etc. Ensure you add the page to the list ofpages
at the end of the.py
file. - Add a
.py
file containing a code example of the chart type in thepages/examples
folder, for instance,area.py
. Take a look at existing examples. - Remove the
IncompletePage(..)
entry for that chart type inchart_groups.py
. - Update this
README.md
with the new chart type, its status, category, and API links.
How to run the example locally
- Run the example with the command
hatch run example visual-vocabulary
. - You should now be able to access the app locally via http://127.0.0.1:8050/.