Dashboards & Visualizations

How to print a PDF of a dashboard with dynamic chart titles that are generated by tokens from JavaScript?

vaibhavagg2006
Communicator

Hi

I have a dashboard with dynamic chart titles. The tokens are flowing from js, Is there any way to print it in PDF too? Currently, the PDF shows $tokenname$ instead of the values.

Please provide your suggestions.

anwarmian
Communicator

Use html tags. The token values are rendered properly if they are within html tags.
Example:

<dashboard>
  <label>My Weekly Dashboard</label>
  <row>
    <panel>
    <html>
       <style>.chartTitleText {font-size: 16px; font-weight:bold;}</style>
      <p class="chartTitleText">My tokens: $mytoken1$  $mytoken2$  $mytoken3$</p>
    </html>
  ...
  </panel>
 </row>
...
</dashboard>
0 Karma

arayapati83
Path Finder

I downvoted this post because didn't work

0 Karma

vaibhavagg2006
Communicator

I tried, but unfortunately it did not work. The pdf prints token names. I am passing tokens from a js.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...