箱线图 ============== 说明:目前使用箱型图,由后端处理所有数据,按格式传给前端 https://echarts.baidu.com/examples/editor.html?c=boxplot-light-velocity 前端应该对用户说明,数值相差很大的列不应该使用箱型图一起展示,应该先归一化,避免显示不正常 参数 --------------- +------------------------+--------+----------+--------------+ | 名称 | 类型 | 是否必传 | 备注 | +------------------------+--------+----------+--------------+ | inputarg | array | Y | 字段集合 | +------------------------+--------+----------+--------------+ | inputarg.#.tbname1 | string | Y | 表名 | +------------------------+--------+----------+--------------+ | inputarg.#.columnArray | array | Y | 字段名称集合 | +------------------------+--------+----------+--------------+ 返回 ------------- +--------+--------+----------+--------------------------------+ | 名称 | 类型 | 是否必传 | 备注 | +--------+--------+----------+--------------------------------+ | result | String | Y | 所有输出的JSON,按节点类型解析 | +--------+--------+----------+--------------------------------+ 算法入口及参数 ----------------------- +---------+-----------------------------------------------------------------+--------------+ | 名称 | 示例 | 备注 | +---------+-----------------------------------------------------------------+--------------+ | args[0] | tmptb2019062511473300088201 | 输入表名 | +---------+-----------------------------------------------------------------+--------------+ | args[1] | sepal_length,petal_width | 需要检测的列 | +---------+-----------------------------------------------------------------+--------------+ | args[2] | hdfs://namenode:9000/ispatial/sysfile/tmp2019062605545200088301 | 结果存储地址 | +---------+-----------------------------------------------------------------+--------------+ 配置模版 ----------------------- .. code:: { "label": "箱线图", "name": "boxplot", "chartType": "boxplot", "params": { "input_nodes": [ { "key": "tbname1", "desc": "输入数据表", "func": "changeTableColumns", "type": "table" } ], "input_form": [ { "key": "columnArray", "label": "数据字段", "placeholder": "请选择数据字段", "type": "select", "options": "getTableColumns", "onChange": "", "multiple": true } ], "output_nodes": [ { "key": "output1", "desc": "输出结果地址", "type": "pmml", "display": "hidden" } ] }, "chart_option": { "title": [ { "text": "箱型图统计分析结果", "left": "center" }, { "text": "upper: Q3 + 1.5 * IQR \nlower: Q1 - 1.5 * IQR", "borderColor": "#999", "borderWidth": 1, "textStyle": { "fontSize": 14 }, "left": "10%", "top": "90%" } ] } }