Splunk Search

add dynamic overlays to chart

devsplunkid
New Member

Just wondering if there's a way to get a handle to the Highcharts javascript object that might have been created when generating the splunk chart? I was hoping to be able to dynamically show and hide additional overlays on a specific chart via javascript.

Tags (1)
0 Karma

devsplunkid
New Member

Was able to find the handle. For any that might be looking, the container seems to be the div[data-highcharts-chart] tag.

From custom javascript included in the SimpleXML:

var thehcobject = $('#mychartid div[data-highcharts-chart]').first().highcharts();
0 Karma

richgalloway
SplunkTrust
SplunkTrust

@devsplunkid If your problem is resolved, please accept the answer to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...