Part 10 Apply customization options with dashboard default settings
By adjusting the dashboard default settings, you can avoid repetition while applying the same customization options to multiple visualizations or data sources. For example, you can apply a default setting to just one type of visualization, such as a column chart. Or, you can apply a default setting to all visualizations, but exclude one type.
More local, or specific, default settings override more global, or generic, default settings. Adjusting the settings of one particular column chart, for example, overrides any default settings set for all column charts.
- Open the source code editor ().
- In the
defaults
stanza, add the following source code after thedataSources
section:"visualizations": { "splunk.column": { "options": { "xAxisTitleVisibility": "hide" } } }
- For Dashboard Studio in Splunk Enterprise versions 8.3.1 and earlier, in the
defaults
stanza, add the following source code after thedataSources
section:
"visualizations": { "viz.column": { "options": { "axisTitleX.visibility": "collapsed" } } }
Now, the
defaults
stanza in the source code looks like this:"defaults": { "dataSources": { "ds.search": { "options": { "queryParameters": { "latest": "$global_time.latest$", "earliest": "$global_time.earliest$" } } } }, "visualizations": { "splunk.column": { "options": { "xAxisTitleVisibility": "hide" } } } },
- For Dashboard Studio in Splunk Enterprise versions 8.3.1 and earlier, in the
- Return to the visual editor by selecting Back. Notice that there is no x-axis label in the column chart now.
Next step
You've completed Part 10 of the Splunk Dashboard Studio tutorial.
Now you've practiced editing dashboard default settings in the source code editor to customize visualizations. Next, finish up your dashboard by adding icons and sharing or exporting your final dashboard. Continue to Part 11: Polish up your dashboard.
Part 9 Add a drilldown | Part 11 Polish up your dashboard |
This documentation applies to the following versions of Splunk® Enterprise: 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 9.0.8, 9.0.9, 9.0.10
Feedback submitted, thanks!