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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...