Dashboards & Visualizations

Custom Visualization influences other visualizations

PWsplunk
Engager

Hi,

I have the following problem and so far i couldn't find a solution on my own:

I build my own custom visualization based on Plotly JS here: https://splunkbase.splunk.com/app/5387/

The app works as intended, but I cannot use it together with other dashboard visualizations that contain datetime fields, because for some reason the datetime values are shown as "undefined undefined". For example, if I place a line chart on a dashboard together with my custom visualization the line chart will render like this:

Bildschirmfoto 2021-02-16 um 17.10.35.png

Somehow my custom visualization seems to overwrite something, that causes the line chart to not show the datetime values. The overall shape of the chart is fine, so the datetime values are there, they are just not displayed correctly. 

It doesn't have to be a line chart, even in the search app the _time field is shown like this:

Bildschirmfoto 2021-02-16 um 17.25.13.png

I went through my custom visualizations code, but could't find anything related to this problem. Maybe Plotly.js is the problem? Am I missing something in the Splunk documentation?

Labels (3)
0 Karma
1 Solution

PWsplunk
Engager

Update: I just found the solution, by going through someone else GitHub. This guy here also used Plotly js and I copied his Webpack.config.js

Here:

https://github.com/tmuth/plotly_custom_viz_splunk/blob/HEAD/appserver/static/visualizations/ohlc/web...

 

This fixed my problem.

View solution in original post

0 Karma

PWsplunk
Engager

Update: I just found the solution, by going through someone else GitHub. This guy here also used Plotly js and I copied his Webpack.config.js

Here:

https://github.com/tmuth/plotly_custom_viz_splunk/blob/HEAD/appserver/static/visualizations/ohlc/web...

 

This fixed my problem.

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