Dashboards & Visualizations

How to use js change format menu value?

guo_dc
Explorer

I plan to develop a customize visualization. I edit a formatter.html 

<form class="splunk-formatter-section" section-label="Data Series">
<splunk-control-group label="Data Type">
<splunk-select id="dataTypeSelect" name="{{VIZ_NAMESPACE}}.dataType" value="Custom">
<option value="Custom">Custom</option>
<option value="XBar_R-X">XBar R - X</option>
<option value="LineChart">LineChart</option>
<option value="Pie">Pie</option>
<option value="Gauge">Gauge</option>

</splunk-select>
</splunk-control-group>
<splunk-control-group label="Option">
<splunk-text-area id="optionTextArea" name="{{VIZ_NAMESPACE}}.option" value="{}">
</splunk-text-area>
</splunk-control-group>...


I wish to change dataType, then textarea option have diffenent value to appear in format menu. Menu Option  have many choice, How to modify  visualization_source.js content to get this?

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

Cloud Platform | Customer Change Announcement: Email Notification Will Be Available ...

The Notification Team is migrating our email service provider since currently there’s no support ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...