Skip to content

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

License

Notifications You must be signed in to change notification settings

bingyun123/custom_chart_viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published