Splunk Search

How to add the stacked column feature in Django app dashboard?

edrivera3
Builder

Hi
I had a column chart in my dashboard and I copied it to my new Django-Splunk App, but it's stacked column feature didn't copy to my new app. Is there a way to set up this stacked feature using Django?

{% searchmanager
id="error_chart_column"
search="index=jobevent error_num=$error_num$ | rename cart_num as \"Cart Number\" test_num as \"Test Number\" | chart dedup_splitvals=t limit=100 useother=t count as \"Count of JobEventLogs\" by \"Cart Number\" \"Test Number\" format=$$VAL$$:::$$AGG$$ "|token_safe
earliest_time="-1y@y"
latest_time="now"
cache=True
%}

0 Karma
1 Solution

edrivera3
Builder

Solution:

 var ChartView = require("splunkjs/mvc/chartview");

 var chart1 = new ChartView({
    id:"chart1",
    managerid: "error_chart_column",
    "charting.chart.stackMode": "stacked",
    type: "column",
    el: $("#mychart1")
}).render();

View solution in original post

0 Karma

edrivera3
Builder

Solution:

 var ChartView = require("splunkjs/mvc/chartview");

 var chart1 = new ChartView({
    id:"chart1",
    managerid: "error_chart_column",
    "charting.chart.stackMode": "stacked",
    type: "column",
    el: $("#mychart1")
}).render();
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...