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!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...