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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...