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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...