Git Product home page Git Product logo

splunk / splunk-plotly-collection-viz Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 2.0 46.68 MB

A collection of Splunk modular visualizations based on plotly.js

Home Page: https://splunkbase.splunk.com/app/5730/

License: Apache License 2.0

Ruby 4.16% CSS 23.27% HTML 16.49% JavaScript 56.07%
splunk splunk-application plotlyjs ohlc candlestick-chart candlestick boxplot financial-analysis finance-application financial-services

splunk-plotly-collection-viz's Introduction

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

splunk-plotly-collection-viz's People

Contributors

abhagat-splunk avatar edro15 avatar mayurah avatar tmuth avatar tzamba avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

splunk-plotly-collection-viz's Issues

[Request] Can you please add bar plots features?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

=> Current library does not contain Bar plot modules.

Describe the solution you'd like
A clear and concise description of what you want to happen.

=> Need bar plotting module, which includes stacked bar plots, etc.

Could Not see the Dashboard example - only box plot

Describe the bug

"No matching visualization found for type: boxplot, in app: splunk_plotly_collection_viz"
Error occurs randomly.

To Reproduce

Steps to reproduce the behavior:

  1. Go to "Apps / Search & Reporting / Dashboards"
  2. Click on the dashboard Overview of Plotly Charts for Splunk

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

I cant' upload capture image in this issues page, (I don't know why..)
So to put it in words
I just can't see viz type "splunk_plotly_collection_viz.boxplot" randomly.
(But in most cases it is not visible)
The other viz type work fine.

The Permission is

  • All apps(system)

The properties is

  • Update checking : YES
  • Visible : NO

The Dashboard code is this.

<row>
<panel>
      <title>Boxplot Chart</title>
      <viz type="splunk_plotly_collection_viz.boxplot">
        <search>
          <query>
            | makeresults count=100
            | streamstats count as group_num
            | eval group_num = ((group_num-1) % 5)+1
            | eval group_num = "Test ".group_num 
            | eval y=random() %51
            | fields - _time
          </query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
      </viz>
    </panel>
  </row>

Desktop (please complete the following information)

  • OS: Window
  • Browser : edge
  • Version : v2.4.0
  • Splunk Version : 8.2.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.