This example can be used in the Markdown visualization to create a linked table of contents.
Markdown visualizations and dashboard Markdown text tiles can include links to other tiles within the dashboard. This is a nice way to create a table of contents or “back to the top” links or buttons to help users move around a longer dashboard.
Any HTML element with an id on the page can be referenced as an anchor point to jump to. Every chart tile on the dashboard has a unique ID that is based on the title of the tile. For example, if the title of your tile is Top Performing Brands the corresponding ID is top-performing-brands and you can reference that anchor point with a markdown link like this:
Copy
Ask AI
(Jump to brand analysis)[#top-performing-brands]
or if you are writing HTML in the markdown editor, like this:
Copy
Ask AI
<a href="#top-performing-brands">Jump to brand analysis</a>
If you are making more complex HTML-based markdown tiles, you can also include IDs in your element tags. It’s a bit more complex to reference these IDs in other markdown tiles. Because we sanitize the HTML and markdown for security, we replace all user-generated IDs with a user-content- prepended to the provided ID. For example, if you write this HTML:
Copy
Ask AI
<article id="brand-analysis">We sell lots of stuff!</article>
then you will need to reference it like this:
Copy
Ask AI
<a href="#user-content-brand-analysis">Jump to brand analysis</a>
If you need help getting the ID for any element, you can also use your browser’s code inspector to locate the element.
Each of the 3 colorful headers in the above example serve as anchor destinations to navigate to. For this example, each hading has been created using a separate markdown visualization in the workbook, each titled to match the text inside the heading.