Custom Chart Viz using echarts for Splunk

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/

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容