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!

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 ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...