We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const spec = { "type": "line", "xField": [ "240108002030021" ], "yField": [ "10002" ], "direction": "vertical", "sortDataByAxis": true, "seriesField": "20001", "padding": 0, "labelLayout": "region", "data": [ { "id": "data", "values": [ { "10001": "数量", "10002": "76", "10003": "240108002030024", "20001": "美术", "240108002030021": "当日", "240108002030024": "76", "240108113200031": "美术" }, { "10001": "数量", "10002": "546", "10003": "240108002030024", "20001": "电话", "240108002030021": "二级", "240108002030024": "546", "240108113200031": "电话" }, { "10001": "数量", "10002": "750", "10003": "240108002030024", "20001": "设备", "240108002030021": "标准级", "240108002030024": "750", "240108113200031": "设备" }, { "10001": "数量", "10002": "1253", "10003": "240108002030024", "20001": "电话", "240108002030021": "标准级", "240108002030024": "1253", "240108113200031": "电话" }, { "10001": "数量", "10002": "268", "10003": "240108002030024", "20001": "设备", "240108002030021": "二级", "240108002030024": "268", "240108113200031": "设备" }, { "10001": "数量", "10002": "439", "10003": "240108002030024", "20001": "信封", "240108002030021": "二级", "240108002030024": "439", "240108113200031": "信封" }, { "10001": "数量", "10002": "130", "10003": "240108002030024", "20001": "桌子", "240108002030021": "二级", "240108002030024": "130", "240108113200031": "桌子" }, { "10001": "数量", "10002": "267", "10003": "240108002030024", "20001": "美术", "240108002030021": "一级", "240108002030024": "267", "240108113200031": "美术" }, { "10001": "数量", "10002": "286", "10003": "240108002030024", "20001": "器具", "240108002030021": "一级", "240108002030024": "286", "240108113200031": "器具" }, { "10001": "数量", "10002": "90", "10003": "240108002030024", "20001": "配件", "240108002030021": "当日", "240108002030024": "90", "240108113200031": "配件" }, { "10001": "数量", "10002": "1116", "10003": "240108002030024", "20001": "纸张", "240108002030021": "标准级", "240108002030024": "1116", "240108113200031": "纸张" }, { "10001": "数量", "10002": "382", "10003": "240108002030024", "20001": "桌子", "240108002030021": "标准级", "240108002030024": "382", "240108113200031": "桌子" }, { "10001": "数量", "10002": "118", "10003": "240108002030024", "20001": "器具", "240108002030021": "当日", "240108002030024": "118", "240108113200031": "器具" }, { "10001": "数量", "10002": "252", "10003": "240108002030024", "20001": "配件", "240108002030021": "一级", "240108002030024": "252", "240108113200031": "配件" }, { "10001": "数量", "10002": "139", "10003": "240108002030024", "20001": "收纳具", "240108002030021": "当日", "240108002030024": "139", "240108113200031": "收纳具" }, { "10001": "数量", "10002": "628", "10003": "240108002030024", "20001": "椅子", "240108002030021": "二级", "240108002030024": "628", "240108113200031": "椅子" }, { "10001": "数量", "10002": "97", "10003": "240108002030024", "20001": "复印机", "240108002030021": "当日", "240108002030024": "97", "240108113200031": "复印机" }, { "10001": "数量", "10002": "189", "10003": "240108002030024", "20001": "装订机", "240108002030021": "当日", "240108002030024": "189", "240108113200031": "装订机" }, { "10001": "数量", "10002": "504", "10003": "240108002030024", "20001": "用品", "240108002030021": "二级", "240108002030024": "504", "240108113200031": "用品" }, { "10001": "数量", "10002": "100", "10003": "240108002030024", "20001": "系固件", "240108002030021": "当日", "240108002030024": "100", "240108113200031": "系固件" }, { "10001": "数量", "10002": "503", "10003": "240108002030024", "20001": "标签", "240108002030021": "二级", "240108002030024": "503", "240108113200031": "标签" }, { "10001": "数量", "10002": "560", "10003": "240108002030024", "20001": "纸张", "240108002030021": "二级", "240108002030024": "560", "240108113200031": "纸张" }, { "10001": "数量", "10002": "1734", "10003": "240108002030024", "20001": "收纳具", "240108002030021": "标准级", "240108002030024": "1734", "240108113200031": "收纳具" }, { "10001": "数量", "10002": "388", "10003": "240108002030024", "20001": "书架", "240108002030021": "一级", "240108002030024": "388", "240108113200031": "书架" }, { "10001": "数量", "10002": "1407", "10003": "240108002030024", "20001": "书架", "240108002030021": "标准级", "240108002030024": "1407", "240108113200031": "书架" }, { "10001": "数量", "10002": "437", "10003": "240108002030024", "20001": "用具", "240108002030021": "二级", "240108002030024": "437", "240108113200031": "用具" }, { "10001": "数量", "10002": "99", "10003": "240108002030024", "20001": "书架", "240108002030021": "当日", "240108002030024": "99", "240108113200031": "书架" }, { "10001": "数量", "10002": "1435", "10003": "240108002030024", "20001": "信封", "240108002030021": "标准级", "240108002030024": "1435", "240108113200031": "信封" }, { "10001": "数量", "10002": "423", "10003": "240108002030024", "20001": "系固件", "240108002030021": "二级", "240108002030024": "423", "240108113200031": "系固件" }, { "10001": "数量", "10002": "739", "10003": "240108002030024", "20001": "装订机", "240108002030021": "二级", "240108002030024": "739", "240108113200031": "装订机" }, { "10001": "数量", "10002": "460", "10003": "240108002030024", "20001": "配件", "240108002030021": "二级", "240108002030024": "460", "240108113200031": "配件" }, { "10001": "数量", "10002": "480", "10003": "240108002030024", "20001": "器具", "240108002030021": "二级", "240108002030024": "480", "240108113200031": "器具" }, { "10001": "数量", "10002": "1283", "10003": "240108002030024", "20001": "配件", "240108002030021": "标准级", "240108002030024": "1283", "240108113200031": "配件" }, { "10001": "数量", "10002": "511", "10003": "240108002030024", "20001": "复印机", "240108002030021": "二级", "240108002030024": "511", "240108113200031": "复印机" }, { "10001": "数量", "10002": "628", "10003": "240108002030024", "20001": "收纳具", "240108002030021": "二级", "240108002030024": "628", "240108113200031": "收纳具" }, { "10001": "数量", "10002": "1310", "10003": "240108002030024", "20001": "用品", "240108002030021": "标准级", "240108002030024": "1310", "240108113200031": "用品" }, { "10001": "数量", "10002": "84", "10003": "240108002030024", "20001": "桌子", "240108002030021": "一级", "240108002030024": "84", "240108113200031": "桌子" }, { "10001": "数量", "10002": "173", "10003": "240108002030024", "20001": "设备", "240108002030021": "一级", "240108002030024": "173", "240108113200031": "设备" }, { "10001": "数量", "10002": "281", "10003": "240108002030024", "20001": "信封", "240108002030021": "一级", "240108002030024": "281", "240108113200031": "信封" }, { "10001": "数量", "10002": "1869", "10003": "240108002030024", "20001": "装订机", "240108002030021": "标准级", "240108002030024": "1869", "240108113200031": "装订机" }, { "10001": "数量", "10002": "124", "10003": "240108002030024", "20001": "电话", "240108002030021": "当日", "240108002030024": "124", "240108113200031": "电话" }, { "10001": "数量", "10002": "421", "10003": "240108002030024", "20001": "美术", "240108002030021": "二级", "240108002030024": "421", "240108113200031": "美术" }, { "10001": "数量", "10002": "50", "10003": "240108002030024", "20001": "设备", "240108002030021": "当日", "240108002030024": "50", "240108113200031": "设备" }, { "10001": "数量", "10002": "126", "10003": "240108002030024", "20001": "信封", "240108002030021": "当日", "240108002030024": "126", "240108113200031": "信封" }, { "10001": "数量", "10002": "1387", "10003": "240108002030024", "20001": "用具", "240108002030021": "标准级", "240108002030024": "1387", "240108113200031": "用具" }, { "10001": "数量", "10002": "24", "10003": "240108002030024", "20001": "桌子", "240108002030021": "当日", "240108002030024": "24", "240108113200031": "桌子" }, { "10001": "数量", "10002": "1322", "10003": "240108002030024", "20001": "系固件", "240108002030021": "标准级", "240108002030024": "1322", "240108113200031": "系固件" }, { "10001": "数量", "10002": "254", "10003": "240108002030024", "20001": "电话", "240108002030021": "一级", "240108002030024": "254", "240108113200031": "电话" }, { "10001": "数量", "10002": "75", "10003": "240108002030024", "20001": "纸张", "240108002030021": "当日", "240108002030024": "75", "240108113200031": "纸张" }, { "10001": "数量", "10002": "344", "10003": "240108002030024", "20001": "用具", "240108002030021": "一级", "240108002030024": "344", "240108113200031": "用具" }, { "10001": "数量", "10002": "91", "10003": "240108002030024", "20001": "标签", "240108002030021": "当日", "240108002030024": "91", "240108113200031": "标签" }, { "10001": "数量", "10002": "312", "10003": "240108002030024", "20001": "纸张", "240108002030021": "一级", "240108002030024": "312", "240108113200031": "纸张" }, { "10001": "数量", "10002": "292", "10003": "240108002030024", "20001": "标签", "240108002030021": "一级", "240108002030024": "292", "240108113200031": "标签" }, { "10001": "数量", "10002": "1172", "10003": "240108002030024", "20001": "复印机", "240108002030021": "标准级", "240108002030024": "1172", "240108113200031": "复印机" }, { "10001": "数量", "10002": "1250", "10003": "240108002030024", "20001": "器具", "240108002030021": "标准级", "240108002030024": "1250", "240108113200031": "器具" }, { "10001": "数量", "10002": "130", "10003": "240108002030024", "20001": "用具", "240108002030021": "当日", "240108002030024": "130", "240108113200031": "用具" }, { "10001": "数量", "10002": "1245", "10003": "240108002030024", "20001": "美术", "240108002030021": "标准级", "240108002030024": "1245", "240108113200031": "美术" }, { "10001": "数量", "10002": "507", "10003": "240108002030024", "20001": "书架", "240108002030021": "二级", "240108002030024": "507", "240108113200031": "书架" }, { "10001": "数量", "10002": "182", "10003": "240108002030024", "20001": "椅子", "240108002030021": "当日", "240108002030024": "182", "240108113200031": "椅子" }, { "10001": "数量", "10002": "555", "10003": "240108002030024", "20001": "装订机", "240108002030021": "一级", "240108002030024": "555", "240108113200031": "装订机" }, { "10001": "数量", "10002": "322", "10003": "240108002030024", "20001": "用品", "240108002030021": "一级", "240108002030024": "322", "240108113200031": "用品" }, { "10001": "数量", "10002": "1793", "10003": "240108002030024", "20001": "椅子", "240108002030021": "标准级", "240108002030024": "1793", "240108113200031": "椅子" }, { "10001": "数量", "10002": "427", "10003": "240108002030024", "20001": "系固件", "240108002030021": "一级", "240108002030024": "427", "240108113200031": "系固件" }, { "10001": "数量", "10002": "1220", "10003": "240108002030024", "20001": "标签", "240108002030021": "标准级", "240108002030024": "1220", "240108113200031": "标签" }, { "10001": "数量", "10002": "569", "10003": "240108002030024", "20001": "椅子", "240108002030021": "一级", "240108002030024": "569", "240108113200031": "椅子" }, { "10001": "数量", "10002": "417", "10003": "240108002030024", "20001": "收纳具", "240108002030021": "一级", "240108002030024": "417", "240108113200031": "收纳具" }, { "10001": "数量", "10002": "130", "10003": "240108002030024", "20001": "用品", "240108002030021": "当日", "240108002030024": "130", "240108113200031": "用品" }, { "10001": "数量", "10002": "359", "10003": "240108002030024", "20001": "复印机", "240108002030021": "一级", "240108002030024": "359", "240108113200031": "复印机" } ], "fields": { "10001": { "alias": "指标名称 " }, "10002": { "alias": "指标值 " }, "20001": { "alias": "图例项 ", "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ], "sortIndex": 0, "lockStatisticsByDomain": true }, "240108002030021": { "alias": "邮寄方式", "domain": [ "标准级", "当日", "二级", "一级" ], "sortIndex": 0, "lockStatisticsByDomain": true }, "240108002030024": { "alias": "数量" }, "240108113200031": { "alias": "子类别" } } } ], "stackInverse": true, "axes": [ { "type": "band", "tick": { "visible": false }, "grid": { "visible": false, "style": { "zIndex": 150, "stroke": "#DADCDD", "lineWidth": 1, "lineDash": [ 4, 2 ] } }, "orient": "bottom", "visible": true, "domainLine": { "visible": true, "style": { "lineWidth": 1, "stroke": "#989999" } }, "title": { "visible": false, "space": 5, "text": "邮寄方式", "style": { "fontSize": 12, "fill": "#363839", "fontWeight": "normal" } }, "maxHeight": null, "autoIndent": false, "sampling": false, "zIndex": 200, "label": { "visible": true, "space": 4, "style": { "fontSize": 12, "fill": "#6F6F6F", "angle": 0, "fontWeight": "normal", "direction": "horizontal", "maxLineWidth": 174 }, "autoHide": true, "autoHideMethod": "greedy", "flush": true, "lastVisible": true }, "hover": true, "background": { "visible": true, "state": { "hover": { "fillOpacity": 0.08, "fill": "#141414" }, "hover_reverse": { "fillOpacity": 0.08, "fill": "#141414" } } }, "paddingInner": 0.36249999999999993, "paddingOuter": 0.175 }, { "type": "linear", "tick": { "visible": false, "tickMode": "d3", "style": { "stroke": "rgba(255, 255, 255, 0)" } }, "niceType": "accurateFirst", "zIndex": 200, "grid": { "visible": true, "style": { "zIndex": 150, "stroke": "#DADCDD", "lineWidth": 1, "lineDash": [ 4, 2 ] } }, "orient": "left", "visible": true, "domainLine": { "visible": true, "style": { "lineWidth": 1, "stroke": "rgba(255, 255, 255, 0)" } }, "title": { "visible": false, "text": "数量", "space": 8, "style": { "fontSize": 12, "fill": "#363839", "fontWeight": "normal" } }, "autoIndent": false, "sampling": false, "label": { "visible": true, "space": 6, "flush": true, "padding": 0, "style": { "fontSize": 12, "maxLineWidth": 174, "fill": "#6F6F6F", "angle": 0, "fontWeight": "normal", "dy": -1, "direction": "horizontal" }, "autoHide": true, "autoHideMethod": "greedy" }, "background": { "visible": true, "state": { "hover": { "fillOpacity": 0.08, "fill": "#141414" }, "hover_reverse": { "fillOpacity": 0.08, "fill": "#141414" } } }, "zero": true, "nice": true } ], "color": { "field": "20001", "type": "ordinal", "range": [ "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF", "#5AC8FA", "#003A8C", "#B08AE2", "#FF6341", "#98DD62", "#07A199", "#87DBDD", "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF" ], "specified": {}, "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "legends": [ { "type": "discrete", "visible": true, "id": "legend-discrete", "orient": "right", "position": "start", "layoutType": "normal", "maxCol": 1, "title": { "textStyle": { "fontSize": 12, "fill": "#6F6F6F" } }, "layoutLevel": 60, "item": { "focus": true, "focusIconStyle": { "size": 14 }, "maxWidth": 349, "spaceRow": 0, "spaceCol": 0, "padding": { "top": 1, "bottom": 2, "left": 3, "right": 2 }, "background": { "visible": false, "style": { "fillOpacity": 0.001 } }, "label": { "style": { "fontSize": 12, "fill": "#6F6F6F" } }, "shape": { "style": { "lineWidth": 0, "symbolType": "square" } } }, "pager": { "layout": "horizontal", "padding": { "left": -18 }, "textStyle": {}, "space": 0, "handler": { "preShape": "triangleLeft", "nextShape": "triangleRight", "style": {}, "state": { "disable": {} } } }, "padding": { "top": 0, "bottom": 0, "left": 16, "right": 0 } } ], "label": { "visible": false, "offset": 3, "overlap": { "hideOnHit": true, "avoidBaseMark": false, "strategy": [ { "type": "position", "position": [ "top", "bottom" ] } ], "clampForce": true }, "style": { "fontSize": 12, "fontWeight": "normal", "zIndex": 400, "lineHeight": "100%", "fill": "#363839", "stroke": "rgba(255, 255, 255, 0.8)", "lineWidth": 1.5, "strokeOpacity": 1 }, "position": "top", "smartInvert": false }, "tooltip": { "handler": {} }, "point": { "style": { "shape": { "type": "ordinal", "field": "20001", "range": [ "circle" ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "size": { "type": "ordinal", "field": "20001", "range": [ 7.0898154036220635 ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "fill": { "field": "20001", "type": "ordinal", "range": [ "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF", "#5AC8FA", "#003A8C", "#B08AE2", "#FF6341", "#98DD62", "#07A199", "#87DBDD", "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF" ], "specified": {}, "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "stroke": { "field": "20001", "type": "ordinal", "range": [ "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF", "#5AC8FA", "#003A8C", "#B08AE2", "#FF6341", "#98DD62", "#07A199", "#87DBDD", "#2E62F1", "#4DC36A", "#FF8406", "#FFCC00", "#4F44CF" ], "specified": {}, "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "strokeOpacity": { "type": "ordinal", "field": "20001", "range": [ 1 ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "fillOpacity": { "type": "ordinal", "field": "20001", "range": [ 1 ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] } }, "state": { "hover": { "lineWidth": 2, "fillOpacity": 1, "strokeOpacity": 1, "scaleX": 1.5, "scaleY": 1.5 } } }, "line": { "style": { "curveType": { "type": "ordinal", "field": "20001", "range": [ "linear" ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "lineWidth": { "type": "ordinal", "field": "20001", "range": [ 3 ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] }, "lineDash": { "type": "ordinal", "field": "20001", "range": [ [ 0, 0 ] ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] } } }, "seriesMark": "line", "markOverlap": true, "region": [ { "clip": true } ], "background": "rgba(255, 255, 255, 0)", "area": { "style": { "curveType": { "type": "ordinal", "field": "20001", "range": [ "linear" ], "domain": [ "美术", "电话", "设备", "信封", "桌子", "器具", "配件", "纸张", "收纳具", "椅子", "复印机", "装订机", "用品", "系固件", "标签", "书架", "用具" ] } } }, "invalidType": "break", "animation": false, "brush": { sizeThreshold: 100, "inBrush": { "fillOpacity": 1, "stroke": "#58595B", "lineWidth": 1, "strokeOpacity": 1, "colorAlpha": 1 }, "outOfBrush": { "colorAlpha": 0.2, "fillOpacity": 0.3, "strokeWidth": 0.3 } }, "crosshair": { "xField": { "visible": true, "line": { "type": "rect" } }, "gridZIndex": 100 }, "hash": "996120e8539d661e2986264bbea20d6c" } const vchart = new VChart(spec, { dom: CONTAINER_ID }); vchart.renderAsync(); // Just for the convenience of console debugging, DO NOT COPY! window['vchart'] = vchart;
The text was updated successfully, but these errors were encountered:
xile611
skie1997
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: