Custom Chart Viz is built upon Apache ECharts library. It allows you to build a chart by custom option
splunkbase: https://splunkbase.splunk.com/app/5261/
export SPLUNK_HOME
cd $SPLUNK_HOME/etc/apps/custom_chart_viz/appserver/static/visualizations/custom_chart_viz
npm install
npm run build
splunk restart
Sample data can be found in the custom_chart_viz/lookups folder, add those data into Splunk and try following visualizations.
* 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
- SPL
| inputlookup spc.csv | table no,UCL,LCL,Center,Data,"Out of Limits","Run of 7"