Skip to content

Time Series Charts

Here we'll talk about how to plot some time series 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.

Candlestick

Coming soon!

Cumulative

Coming soon!

Line

Simple

dx.line(df, x='datetime_column', y='integer_column')

df.plot.line(x='datetime_column', y='integer_column')

Customized

You may need to use a larger dataset to see the changes here. For these examples, we used dx.random_dataframe(5000).

dx.line(
    df, 
    x='datetime_column', 
    y='integer_column',
    line_type="cumulative",
    split_by="keyword_column",
    multi_axis=True,
    smoothing="hourly",
    use_count=True,
    bounding_type="relative",
    zero_baseline=True,
    combination_mode="min",
)

df.plot.line(
    x='datetime_column', 
    y='integer_column',
    line_type="cumulative",
    split_by="keyword_column",
    multi_axis=True,
    smoothing="hourly",
    use_count=True,
    bounding_type="relative",
    zero_baseline=True,
    combination_mode="min",
)

Line Percent

Coming soon!

Stacked Area

Coming soon!

Stacked Percent

Coming soon!