{ "name": "ml-bar-range", "version": "4.1.4", "scripts": { "build": "cube build ./ --output=../../datavComponent --remote=pandav --smart" }, "dependencies": { "bcore": "0.0.22", "lodash": "4.17.11", "datav-g2plot-adaptor": "1.1.6", "datav-g2plot-util": "0.2.4" }, "pandav": { "cn_name": "区间范围柱状图", "level": 0, "protocol": 2, "supportTheme": true, "type": [ "DataV-6:regular_column" ], "apis": { "source": { "handler": "render", "description": "区间范围柱状图接口", "fields": { "x": { "description": "类目" }, "y1": { "description": "范围数值-最小值" }, "y2": { "description": "范围数值-最大值" }, "s": { "description": "系列", "optional": true } } } }, "config": { "options": { "type": "menu", "children": { "chart": { "name": "图表", "children": { "margin": { "type": "margin", "name": "自定义边距", "default": { "top": 4, "bottom": 30, "left": 30, "right": 0 }, "children": { "show": { "default": true } }, "enableHide": true }, "customBarWidth": { "name": "自定义柱宽", "type": "suite", "enableHide": true, "children": { "show": { "default": false }, "columnSize": { "name": "宽度", "type": "stepper", "default": 32, "suffix": "px" } } }, "numericalLabel": { "name": "值标签", "type": "group", "children": { "show": { "default": false }, "topStyle": { "name": "上方标签", "type": "font", "default": { "fontSize": 10, "color": "#ddd", "fontWeight": "normal", "fontFamily": "Microsoft Yahei" } }, "bottomStyle": { "name": "下方标签", "type": "font", "default": { "fontSize": 10, "color": "#ddd", "fontWeight": "normal", "fontFamily": "Microsoft Yahei" } } }, "enableHide": true }, "legend": { "name": "图例", "type": "group", "fold": true, "description": "数据中有S存在时,图例生效", "children": { "show": { "default": false }, "flipPage": { "name": "允许翻页", "type": "switch", "default": true }, "layout": { "name": "布局", "type": "suite", "children": { "loc": { "name": "位置", "type": "iconRadio", "default": "top-right", "options": [ { "value": "top-left", "src": "top-left", "label": "顶部居左" }, { "value": "top-center", "src": "top-center", "label": "顶部居中" }, { "value": "top-right", "src": "top-right", "label": "顶部居右" }, { "value": "bottom-left", "src": "bottom-left", "label": "底部居左" }, { "value": "bottom-center", "src": "bottom-center", "label": "底部居中" }, { "value": "bottom-right", "src": "bottom-right", "label": "底部居右" } ] } } } }, "enableHide": true } }, "type": "menuChild", "mode": "single" }, "axis": { "name": "坐标轴", "children": { "xaxis": { "name": "x轴", "children": { "isShow": { "type": "switch", "name": "x轴可见", "default": true }, "type": { "name": "数据类型", "type": "buttonRadio", "default": "cat", "options": [ { "name": "数值型", "value": "linear" }, { "name": "类目型", "value": "cat" }, { "name": "时间型", "value": "dateTime" } ] }, "extent": { "name": "范围", "type": "suite", "children": { "min": { "name": "最小值", "type": "select", "default": "0", "options": [ { "name": "0", "value": "0" }, { "name": "数据最小值", "value": "min" } ], "allowCustom": true, "col": 12 }, "max": { "name": "最大值", "type": "select", "default": "max", "options": [ { "name": "数据最大值", "value": "max" } ], "col": 12, "allowCustom": true } }, "showInPanel": { "conditions": [ [ ".type", "$eq", "aaa" ] ] } }, "label": { "name": "轴标签", "type": "group", "children": { "show": { "default": true }, "timeFormat": { "name": "显示格式", "type": "select", "default": "MM/DD", "description": "时间请参照 YYYY/MM/DD HH:mm:ss", "options": [ { "value": "", "name": "默认" }, { "value": "YYYY年", "label": "2016年" }, { "value": "YYYY", "label": "2016(年份)" }, { "value": "MM月DD日", "label": "01月01日" }, { "value": "MM/DD", "label": "01/01(月/日)" }, { "value": "HH:mm:ss", "label": "02:30:00" }, { "value": "HH:mm", "label": "02:30(时:分)" }, { "value": "YYYY/MM/DD HH:mm", "label": "2016/01/01 02:30" }, { "value": "YYYY/MM/DD", "label": "2016/01/01" }, { "value": "MM/DD HH:mm", "label": "01/01 02:30" }, { "value": "MM月", "label": "1月" }, { "value": "DD日", "label": "2日" }, { "value": "HH时", "label": "02时" }, { "value": "HH", "label": "02(时)" }, { "value": "MM-DD", "label": "01-01" }, { "value": "MM.DD", "label": "01.01" } ], "filterable": true, "allowCustom": true, "showInPanel": { "conditions": [ [ "..type", "$eq", "dateTime" ] ] } }, "valueFormat": { "name": "显示格式", "type": "select", "default": "d", "description": "整数参照 d, 浮点参照 .1f", "options": [ { "value": "null", "name": "默认" }, { "value": "d", "name": "11(整数)" }, { "value": ".1f", "name": "11.1(浮点数)" }, { "value": ".2f", "name": "11.11(浮点数)" } ], "filterable": true, "allowCustom": true, "showInPanel": { "conditions": [ [ "..type", "$eq", "linear" ] ] } }, "textarea": { "type": "font", "name": "文本样式", "default": { "fontFamily": "Microsoft Yahei", "fontWeight": "normal", "fontSize": 12, "color": "rgb(144, 160, 174)" } }, "display": { "type": "suite", "name": "轴标签展示", "children": { "offsetX": { "name": "x轴偏移", "type": "stepper", "default": 0, "col": 12, "suffix": "px" }, "offsetY": { "name": "y轴偏移", "type": "stepper", "default": 0, "col": 12, "suffix": "px" }, "rotate": { "name": "角度", "type": "select", "default": "0", "options": [ { "value": "0", "label": "水平", "src": "horizontal" }, { "value": "45", "label": "斜角", "src": "incline" }, { "value": "90", "label": "垂直", "src": "vertical" } ], "col": 12 } } }, "customTickCount": { "name": "自定义数量", "enableHide": true, "type": "suite", "children": { "show": { "default": false }, "tickCount": { "type": "stepper", "name": "数量", "default": 10, "min": 1, "step": 1, "description": "坐标轴刻度标签最多显示个数", "col": 12 } } } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "title": { "type": "group", "name": "轴标题", "children": { "show": { "default": false }, "text": { "name": "标题内容", "type": "text", "default": "X轴" }, "offset": { "name": "偏移量", "type": "stepper", "default": 10, "suffix": "px" }, "textarea": { "type": "font", "name": "文本样式", "default": { "fontWeight": "normal", "fontSize": 12, "color": "rgb(144, 160, 174)" } } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "axisLine": { "name": "轴线", "type": "group", "children": { "show": { "default": true }, "color": { "type": "fill", "name": "颜色", "default": "rgba(255, 255, 255, 0.1)" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "tickLine": { "name": "刻度线", "type": "group", "children": { "show": { "default": false }, "stroke": { "type": "fill", "name": "颜色", "default": "rgba(255, 255, 255, 0.1)", "col": 12 }, "length": { "name": "长度", "type": "stepper", "default": 5, "suffix": "px" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "grid": { "name": "网格线", "type": "group", "children": { "show": { "default": false }, "color": { "type": "fill", "name": "颜色", "default": "#fff" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } } }, "enableHide": true }, "yaxis": { "name": "y轴", "children": { "isShow": { "name": "y轴可见", "type": "switch", "default": true }, "type": { "name": "数据类型", "type": "buttonRadio", "default": "defaults", "options": [ { "name": "数值型", "value": "defaults" }, { "name": "类目型", "value": "category" }, { "name": "时间型", "value": "time" } ], "showInPanel": { "conditions": [ [ ".extent", "$eq", "extent" ] ] } }, "extent": { "name": "范围", "type": "suite", "children": { "min": { "name": "最小值", "type": "select", "default": "0", "options": [ { "name": "0", "value": "0" }, { "name": "数据最小值", "value": "min" } ], "allowCustom": true, "col": 12 }, "max": { "name": "最大值", "type": "select", "default": "max", "options": [ { "name": "数据最大值", "value": "max" } ], "col": 12, "allowCustom": true } }, "showInPanel": { "conditions": [ [ ".extent", "$eq", "extent" ] ] } }, "valueFormat": { "name": "显示格式", "type": "select", "default": ".0f", "description": "整数参照 d, 浮点参照 .1f", "options": [ { "value": null, "label": "默认" }, { "value": ".0f", "label": "11(整数)" }, { "value": ".1f", "label": "11.1(浮点数)" }, { "value": ".2f", "label": "11.11(浮点数)" }, { "value": "%", "label": "11%" }, { "value": ".1%", "label": "11.1%" }, { "value": ".2%", "label": "11.11%" } ], "filterable": true, "allowCustom": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "label": { "name": "轴标签", "type": "group", "children": { "show": { "default": true }, "textarea": { "type": "font", "name": "文本样式", "default": { "fontFamily": "Microsoft Yahei", "fontWeight": "normal", "fontSize": 12, "color": "rgb(144, 160, 174)" } }, "display": { "type": "suite", "name": "轴标签展示", "children": { "offsetX": { "name": "x轴偏移", "type": "stepper", "default": -10, "col": 12, "suffix": "px" }, "offsetY": { "name": "y轴偏移", "type": "stepper", "default": 0, "col": 12, "suffix": "px" }, "rotate": { "name": "角度", "type": "select", "default": "0", "options": [ { "value": "0", "label": "水平", "src": "horizontal" }, { "value": "45", "label": "斜角", "src": "incline" }, { "value": "90", "label": "垂直", "src": "vertical" } ], "col": 12 } } }, "customTickCount": { "name": "自定义数量", "enableHide": true, "type": "suite", "children": { "show": { "default": false }, "tickCount": { "type": "stepper", "name": "数量", "default": 10, "min": 1, "step": 1, "description": "坐标轴刻度标签最多显示个数", "col": 12 } } } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "title": { "type": "group", "name": "轴标题", "children": { "show": { "default": false }, "text": { "name": "标题内容", "type": "text", "default": "Y轴" }, "offset": { "name": "偏移量", "type": "stepper", "default": 10, "suffix": "px" }, "textarea": { "type": "font", "name": "文本样式", "default": { "fontWeight": "normal", "fontSize": 12, "color": "rgb(144, 160, 174)" } } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "axisLine": { "name": "轴线", "type": "group", "children": { "show": { "default": true }, "color": { "type": "fill", "name": "颜色", "default": "rgba(255, 255, 255, 0.1)" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "tickLine": { "name": "刻度线", "type": "group", "children": { "show": { "default": false }, "stroke": { "type": "fill", "name": "颜色", "default": "rgba(255, 255, 255, 0.1)", "col": 12 }, "length": { "name": "长度", "type": "stepper", "default": 5, "suffix": "px" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } }, "grid": { "name": "网格线", "type": "group", "children": { "show": { "default": false }, "color": { "type": "fill", "name": "颜色", "default": "#434343" } }, "enableHide": true, "showInPanel": { "conditions": [ [ ".isShow", "$eq", true ] ] } } }, "enableHide": true } }, "type": "menuChild", "mode": "multiple" }, "series": { "type": "menuChild", "name": "系列", "children": { "series": { "type": "tabs", "name": "数据系列", "default": [ { "color": "#0a73ff" }, { "color": "#3dabff" }, { "color": "#57cdff" }, { "color": "#70deff" }, { "color": "#a3f6ff" }, { "color": "#bdfdff" }, { "color": "#d6fffe" } ], "template": { "type": "object", "name": "系列<%= i + 1%>", "children": { "mapping": { "name": "映射字段", "type": "suite", "children": { "fieldValue": { "name": "系列s值", "type": "text", "default": "", "col": 12 }, "serieName": { "name": "系列显示", "type": "text", "default": "", "col": 12 } }, "showInPanel": { "conditions": [ [ "...seriesMapping", "$eq", true ] ] } }, "color": { "name": "填充色", "type": "fill", "components": [ "flat", "linearGradient" ], "default": "rgb(10, 115, 255)" } } } }, "seriesMapping": { "name": "系列映射", "type": "switch", "default": false, "description": "数据中包含系列s值时生效,可以通过映射字段设置特定系列的颜色" } } }, "others": { "name": "其它", "children": { "tooltip": { "name": "提示框", "type": "group", "fold": true, "children": { "show": { "default": true }, "textStyle": { "name": "文本样式", "type": "font", "default": { "fontFamily": "Microsoft Yahei", "fontWeight": "normal", "fontSize": 14, "color": "#fff" } }, "axisPointer": { "name": "指示器", "type": "suite", "fold": true, "children": { "width": { "name": "宽度", "type": "stepper", "step": 1, "default": 1, "col": 12, "suffix": "px" }, "_type": { "name": "类型", "type": "iconRadio", "options": [ { "name": "实线", "value": "solid", "src": "solid" }, { "name": "虚线", "value": "dashed", "src": "dashed-line" }, { "name": "点线", "value": "dotted", "src": "dot-line" } ], "default": "solid", "col": 12 }, "color": { "name": "颜色", "type": "fill", "default": "#f00", "col": 24 } }, "enableHide": true }, "bgBox": { "name": "背景框样式", "type": "group", "children": { "backgroundColor": { "name": "背景色", "type": "fill", "default": "rgba(0, 0, 0, 0.65)" }, "padding": { "name": "内边距", "type": "stepper", "default": 10, "step": 1, "suffix": "px" }, "border": { "type": "suite", "name": "边框", "children": { "borderWidth": { "name": "边框粗细", "type": "stepper", "step": 1, "default": 0, "col": 12, "suffix": "px" }, "borderColor": { "name": "边框颜色", "type": "fill", "default": "#333", "col": 12 } } } } } }, "enableHide": true } }, "type": "menuChild", "mode": "single" } } } }, "api_data": { "source": [ { "x": "内蒙古", "y2": "375", "y1": "180" }, { "x": "浙江", "y2": "200", "y1": "100" }, { "x": "辽宁", "y1": "25", "y2": "125" }, { "x": "黑龙江", "y2": "90", "y1": "60" }, { "x": "安徽", "y2": "240", "y1": "170" }, { "x": "福建", "y2": "420", "y1": "190" } ] }, "publicHandler": {}, "events": {}, "view": { "width": "300", "height": "180", "minWidth": "30", "minHeight": "20", "z-index": 1010 }, "icon": "/civ_pandaview_component/pandabi-component/assets/TB1zg4WxQL0gK0jSZFxXXXWHVXa-368-208.png", "thumbnail": "/civ_pandaview_component/pandabi-component/assets/TB1.iJPxGL7gK0jSZFBXXXZZpXa-332-144.png" } }