Number Value
Display a localized number with its machine-readable value.
- Gross sales
- $17,860.50USD · sample week
- Units packed
- 1,284this month
HTML
<dl class="rl-insight-metrics"><div class="rl-insight-metric"><dt>Gross sales</dt><dd><strong><data value="17860.5">$17,860.50</data></strong><span>USD · sample week</span></dd></div><div class="rl-insight-metric"><dt>Units packed</dt><dd><strong><data value="1284">1,284</data></strong><span>this month</span></dd></div></dl>Format values on the server using the locale and currency of the report.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-insights.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-insights.js"></script>