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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...