All Apps and Add-ons

type of bar not working in simplexml chart

aelliott
Motivator

Why is the below not generating a bar chart, but instead a column chart. and everytime I change "type" to column, line, pie, etc.. it stays a column chart.
How do I make this a bar chart?

    var ChartElement = require("splunkjs/mvc/simplexml/element/chart");

     var mychart = new ChartElement({
         "id": "volumeby-timecharttwo",
         "managerid": "user-search",
         "type": "bar",
          "resizable": true,
      "drilldown":"all",
      "drilldownRedirect": "$drilldown$",
         "el": $("#RenderVolumeBy"),
      }, {tokens: true}).render();
1 Solution

aelliott
Motivator

Figured it out, you have to set the "charting.chart" property to "bar"

View solution in original post

0 Karma

aelliott
Motivator

Figured it out, you have to set the "charting.chart" property to "bar"

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...