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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...