Splunk Search

How to build custom charts using Splunk Highcharts

ram1042
New Member

I need to develop a custom donut chart using Highcharts API. I came to know that Splunk internally uses Highcharts for visualization and I am planing to leverage the API and build a custom chart. I am not clear on how to define and use Hightcharts in Splunk. Below is the code snippet I have used, which is throwing error as "Uncaught ReferenceError: Highcharts is not defined"

require([
"splunkjs/mvc",
"underscore",
"splunkjs/mvc/searchmanager",
"splunkjs/mvc/simplexml/ready!",
"highcharts"
], function(
mvc,
_,
SearchManager,
HighCharts
) {

0 Karma

zeinstein
Path Finder

Try putting "highcharts" before "splunkjs/mvc/simplexml/ready!" in the require part.

ram_sistla
Engager

Thanks this solution worked.

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