Cookbook

This page references recipes you can use to speed up your data visualization learning curve.

Working with dates

Use the format-dates transformation to display dates in a user-friendly way.

Single series

Multiple series

You can do the same with the result of a join

Combining different data sources

With this technique, you can also combine data from different data sources where the date would be returned in different formats.

Collection volumes

A nice way to display collection volumes is by showing the actual number of elements in the collection with a quick history of the volumes.

This can be achieved with two Charts in the same Card :

  • A Metric chart using an OTQL query in its dataset, such as SELECT @count{} FROM UserPoint

  • A Bars chart using a Collection volumes query in its dataset.

Another tip when showing collection volumes is to replace lists of metrics with bar charts. This makes it easier to visualize proportions, especially if you have a reference number like the total number of UserPoint.

Comparing audiences

You may want to compare a particular audience you are building or that's been built to the whole datamart or to a specific reference audience.

For example to answer the question Do users in this audience have different viewing modes than all users ? you can build a dashboard at the builders and/or the segments scope with :

  • The number of UserPoint visiting through each viewing mode for your audience

  • The number of UserPoint visiting through each viewing mode for all users

  • Index calculation to visualize which viewing modes are more/less used in your audience

In the following example, people in the audience are more likely to get touched in LIVE events that in replays.

Working with channel, compartments and segments

When doing any chart that returns channels, compartments or segments, you will usually want to display names instead of IDs in the UI.

For this, use the get-decorators transformation to replace IDs with names.

Display channel names instead of channel IDs

Using the reduce transformation to display a @cardinality OTQL query as a metric

@cardinality OTQL queries return a key / value dataset. In lots of cases, this dataset only has one value but can't be displayed as a metric as it is not in the correct format.

We can use the reduce transformation to put the dataset in the correct format.

Last updated

Was this helpful?