Coder Social home page Coder Social logo

splunk-app-and-ta-development / custom_chart_viz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bingyun123/custom_chart_viz

0.0 1.0 0.0 3.2 MB

Custom Chart Viz for splunk is built upon Apache ECharts library. It allows you to build a chart by custom option

License: MIT License

Ruby 0.01% HTML 0.03% JavaScript 99.96% CSS 0.01%

custom_chart_viz's Introduction

Custom Chart Viz

Custom Chart Viz is built upon Apache ECharts library. It allows you to build a chart by custom option

Installation

splunkbase: https://splunkbase.splunk.com/app/5261/

Development Install and Build

export SPLUNK_HOME
cd $SPLUNK_HOME/etc/apps/custom_chart_viz/appserver/static/visualizations/custom_chart_viz
npm install
npm run build
splunk restart

Usage

Sample data can be found in the custom_chart_viz/lookups folder, add those data into Splunk and try following visualizations.

Custom

* SPL
    ```
    | inputlookup spc.csv
    | table no,UCL,LCL,Center,Data,"Out of Limits","Run of 7"
    ```
* Data Type -> Custom
* Option -> copy echarts options,e.g.:
    ```
     {  
        xAxis: {
            type: 'category',
            boundaryGap: false
        }, 
        yAxis: {
            type: 'value',
            scale: true,
            axisLine: { show: false }
        },
        series: [{ 
                type: 'line'
            },
            { 
                type: 'bar'
            },
            { 
                type: 'scatter'
            },
            { 
                type: 'bar' 
            },
            { 
                type: 'scatter' 
            },
            {
                type: 'scatter' 
            }
        ]
    }   
    ```
* xAxis Data Index Binding -> Data index corresponding to the x-axis ,e.g.: 1
* Series Data Index Binding -> Data index corresponding to the series , e.g.:1,2,3,4,5

XBar R - X

  • SPL
    | inputlookup spc.csv
    | table no,UCL,LCL,Center,Data,"Out of Limits","Run of 7"
    

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.