Skip to content

Summary Charts

Here we'll talk about how to plot some summary chart types in DEX using dx.

Setup

We will be using our own built-in DataFrame generation function for these visualizations. The values you see may be different if you run the same code in a cell, but the column structure should be very similar (if not identical).

df = dx.random_dataframe(100)

The Customized examples with more options do not necessarily represent "good" data visualization; they are just a glimpse into what settings are available to compare against the Simple examples.

Big Number

Coming soon!

Boxplot

Coming soon!

Dimension Matrix

Coming soon!

Heatmap

Coming soon!

Hexbin

Coming soon!

Histogram

Coming soon!

Horizon

Coming soon!

Ridgeline

Coming soon!

Violin

Simple

dx.violin(df, split_by='keyword_column', metric='integer_column')

df.plot(kind='violin', split_by='keyword_column', metric='integer_column')
*Note you can't use df.plot.violin() directly

Customized

dx.violin(
    df, 
    split_by='keyword_column', 
    metric='integer_column',
    bins=5,
    show_interquartile_range=True,
    column_sort_order='desc',
)

df.plot(
    kind='violin',
    split_by='keyword_column', 
    metric='integer_column',
    bins=5,
    show_interquartile_range=True,
    column_sort_order='desc',
)
*Note you can't use df.plot.violin() directly