Splunk® Enterprise

Splunk Dashboard Studio

Splunk Enterprise version 8.2 is no longer supported as of September 30, 2023. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.
This documentation does not apply to the most recent version of Splunk® Enterprise. For documentation on the most recent version, go to the latest release.

Part 8 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 an area 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 area chart, for example, overrides any default settings set for all area charts.

  1. Open the source code editor (A forward slash between two outward carrots as an icon.).
  2. In the defaults stanza, add the following source code after the dataSources section:
    "visualizations": {
               "splunk.area": {
                   "options": {
                       "xAxisTitleVisibility": "hide"
                   }
               }
           }
    
    1. For Dashboard Studio in Splunk Enterprise, in the defaults stanza, add the following source code after the dataSources section:
    "visualizations": {
               "viz.area": {
                   "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.area": {
                   "options": {
                       "xAxisTitleVisibility": "hide"
                   }
               }
           }
       },
    
  3. Return to the visual editor by selecting Back. Notice that there is no x-axis label in either area chart.

Next step

You've completed Part 8 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 9: Polish up your dashboard.

Last modified on 22 July, 2022
Part 7 Add an input   Part 9 Polish up your dashboard

This documentation applies to the following versions of Splunk® Enterprise: 8.2.0, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.8, 8.2.9, 8.2.10, 8.2.11, 8.2.12


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters