Dashboards & Visualizations

How do I set token in d3 js visulization?

ravikumar_sri20
Loves-to-Learn

Experts,

I have below XML Dashboard code. The first panel displays calender heat map using d3 js library as shown below.

ravikumar_sri20_0-1659350048719.png

My requirement is, when a day on the calender is clicked, that date value needs to be passed as token to the second panel.  I could not get this working. Could you please help me ?

<form script="autodiscover.js" hideChrome="true" >
<label>Monthly Utilization</label>
<row>
<panel>
<title>Rolling Average</title>
<html>
<div id="search1" class="splunk-manager"
align="center"
data-require="splunkjs/mvc/searchmanager"
data-options='{
"search": {
"type": "token_safe",
"value":
"source=...........| timechart span=1d values(AverageVAL) as \"Average VAL\""},
"cancelOnUnload": true,
"preview": true
}'>
</div>

<div id="heat_map" class="splunk-view" align="center" data-require="app/MFDashboard/calendarheatmap/calendarheatmap2" data-options='{
"id" : "fcal",
"managerid" : "search1",
"domain" : "month",
"subDomain" : "day"
}'>
</div>
</html>

<drilldown>
<set token="Selectedday">$click.value$</set>
</drilldown>
</panel>
</row>

<row>
<panel depends="$Selectedday$">
<html>
<p> Testing... </p>
</html>
</panel>
</row>
</form>

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...