Skip to content

splunk/splunk-plotly-collection-viz

Repository files navigation

Financial and Advanced Statistical Data Visualizations

Custom badge Actions Status: test Latest release (latest by date) License

A collection of Splunk modular visualizations based on plotly.js, a JavaScript open-source library used to create interactive charts for finance, engineering and sciences.

Visualizations included into this collection:

  • OHLC Chart - for Stocks and Financial Data (source code)
  • Box Plot Chart - for Statistical Data (source code)
  • Multiple Axes Chart - for Advanced Statistical Data Visualizations (source code)

Installation

Please refer to the Splunk Documentation for guidance on installing the Add-On in your environment. The app needs to be installed on the SH tier.

Download is available from either GitHub or Splunkbase.

Usage

  • Type your search
  • Click on tab Visualization and then select either OHLC Chart, Box Plot or Multiple Axes among available visualizations
  • Format the visualization as needed

OHLC Chart

<basesearch> | table _time open close high low [currencypair] [8pointEMA] [20pointEMA] [4pointSMA]

If not provided, default values will be used for optional fields currencypair, 8pointEMA, 20pointEMA and 4pointEMA.

Field names must correspond to the ones specified above to be properly handled by the visualization

alt text

alt text

Box Plot

<basesearch> | table box_name value

Replace box_name and value with your fields to start.

FieldName Format Description Example
box_name string Label of the box A
value numeric Data forming box dataset 20

alt text

Multiple Axes Plot

<basesearch> | table _time scatter-y2-dataset1 scatter-y2_datasetN line-y-dataset1 line-y-datasetN

Replace _time, scatter-y2-datasetX and line-y-datasetX with your fields to start.

FieldName Format Description Example
_time date Event time reference 2019-05-17 07:30:02
scatter-y2-dataset1 numeric Dataset for 1st scatter plot on secondary Y-Axis -1.6
scatter-y2-datasetN numeric Dataset for Nth scatter plot on secondary Y-Axis -2
line-y-dataset1 numeric Dataset for 1st line plot on regular Y-Axis 10
line-y-datasetN numeric Dataset for Nth line plot on regular Y-Axis 32

Field names must begin with scatter and line to be properly handled by the visualization

alt text

Example

This app comes with a dashboard showcasing simple usages of mentioned charts.

  • Navigate to Apps / Search & Reporting / Dashboards
  • Click on the dashboard Overview of Plotly Charts for Splunk
  • Be inspired

Contributing

License

This project is licensed under Apache-2.0