Dashboards & Visualizations

Can we do an chart overlay for bar chart in a dashboard studio?

yvassilyeva
Path Finder

Hi! Can we currently create a bar chart with a chart overlay in a dashboard studio?

Labels (3)
0 Karma
1 Solution

mpalarchio
Splunk Employee
Splunk Employee

Hi @yvassilyeva! You can use an overlay in a bar chart with the overlayFields option in the source code. Here's an example from our Examples Hub for a field named host8:

{
    "type": "splunk.column",
    "options": {
        "overlayFields": "host8"    
},
    "dataSources": {
        "primary": "ds_search2"
    },
    "title": "Overlay",
    "context": {}
}

View solution in original post

nickdekkersmt
Loves-to-Learn

@mpalarchio is it possible to have spaces in the overlay field?

This is not working:

 "options": {
        "chart.stackMode""stacked",
         "axisY2.enabled"true,

 

        "overlayFields""field 1, field 2, field 3",
        "fieldColors": {
            "field4""#E7DA78",
            "field5""#82BACF"
        }
    },
0 Karma

mpalarchio
Splunk Employee
Splunk Employee

Hi @yvassilyeva! You can use an overlay in a bar chart with the overlayFields option in the source code. Here's an example from our Examples Hub for a field named host8:

{
    "type": "splunk.column",
    "options": {
        "overlayFields": "host8"    
},
    "dataSources": {
        "primary": "ds_search2"
    },
    "title": "Overlay",
    "context": {}
}

hiimcabre
Engager

@mpalarchio Hey Thank You for the reply! I was stucked with this column chart configuration and it worked 100% 🙂

0 Karma

yvassilyeva
Path Finder

@mpalarchio Thank you, that worked! Have you done multiple overlay chart that you can View by Axis - that's the option in classic dashboards?

0 Karma

yvassilyeva
Path Finder
Got it working.
 
 "options": {
        "chart.stackMode""stacked",
         "axisY2.enabled"true,

        "overlayFields""field1, field2, field3",
        "fieldColors": {
            "field4""#E7DA78",
            "field5""#82BACF"
        }
    },
0 Karma

mpalarchio
Splunk Employee
Splunk Employee

Glad to hear you got it working! For reference, you can also find the full list of options for bar charts in our documentation here: https://docs.splunk.com/Documentation/SplunkCloud/latest/DashStudio/chartsBar

0 Karma
Get Updates on the Splunk Community!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...