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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...