美文网首页Splunk
Custom Chart Viz using echarts f

Custom Chart Viz using echarts f

作者: bingyun | 来源:发表于2020-10-12 11:49 被阅读0次

Custom Chart Viz

Custom Chart Viz 是基于Apache ECharts library封装的, 可以使用他进行自定义配置设置,给图表可视化带来了更多的可能性。

Usage

示例数据在custom_chart_viz/lookups 文件夹下面,可以用于测试。

Custom

  • SPL
| inputlookup spc.csv
    | table no,UCL,LCL,Center,Data,"Out of Limits","Run of 7"
  • Data Type -> Custom/自定义
  • Option -> 拷贝echarts的配置,可以自行定义,列如:
{  
        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 -> x轴显示的标号对应的数据列索引 ,e.g.: 1
  • Series Data Index Binding -> Series数据对应的数据列索引, e.g.:1,2,3,4,5
  • 效果

XBar R - X of SPC(Statistical Process Control)

目前额外封装了一个XBar R - X控制图,可以按格式传数据即可。

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

github: https://github.com/bingyun123/custom_chart_viz
splunkbase: https://splunkbase.splunk.com/app/5261/

相关文章

网友评论

    本文标题:Custom Chart Viz using echarts f

    本文链接:https://www.haomeiwen.com/subject/xxpupktx.html