Skip to main content

Data readout

The code for this example can be used in the Markdown visualization to create a sparkline visualization with a description. The description uses Mustache syntax to reference values in the results set.

Example code

In the past 12 months, Acme Corp has had **{{result._totals._first.order_items.order_count.value}}** orders made by **{{result._totals._first.users.count.value}}** users, resulting in **{{result._totals._first.order_items.sale_price_sum.value}}** total revenue.
<br><br>
<Sparkline field="order_items.order_count" color="#ED6C91" height=70% width=100% reverse=true></Sparkline>