Hello, is there a way to include the time jump/selector with an embedded dashboard?
We don’t expose the time selector in embedded dashboards. You can, however, manage the time selection in the page that’s holding the embedded dashboard and thread the value through.
In the embed code, look for the <a>
tag with the data
attributes. It looks something like this:
<a class="los-widget"
href="https://app.losant.com/dashboards/62728a741e34f6842d09821c"
data-dashboard-id="62728a741e34f6842d09821c"
data-theme="light"
data-height="946px" data-width="100%"
data-refresh-rate="60">
View my Losant-powered dashboard "Sample Dashboard"
</a>
You can add data-time
to that set and pass it a value that represents the milliseconds since Epoch. For example, to show the same dashboard at the time of Jan 1, 2022, 14:00 GMT, you’d add the following to the <a>
tag:
data-time="1641045600000"
Thanks Dylan that should do fine!