Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How do I render a chart with an overlay using the "View as Axis" option using the splunk-sdk for javascript?

$
0
0
I'm trying to render a chart with an "View as Axis" overlay using the javascript splunk-sdk. Setting the following options does not achieve the expected result: window.splunkjs.UI.ready(window.chartToken, function () { chart.setData(results, { ... "axisY2.enabled": true, "axisY2.scale": "inherit", "chart.overlayFields": "some-field-name" }); chart.draw(); }); I also tried setting chart.overlayFields as an array `"chart.overlayFields": ["some-field-name"]` What am I missing to make this happen? I have all the options set as shown by looking at a chart definition XML in splunk itself.

Viewing all articles
Browse latest Browse all 47296

Trending Articles