說明:沙盒
更多語言
更多操作
請在這行文字底下開始測試
"tooltip": { "trigger": "axis", "axisPointer": { "type": "cross" } }, "legend": { "top": 5 }, "grid": [ { "top": 50, "height": "40%" }, { "top": "55%", "height": "35%" } ], "toolbox": { "show": true, "feature": { "saveAsImage": { "excludeComponents": [ "toolbox", "dataZoom" ] }, "restore": {}, "dataView": { "readOnly": true }, "dataZoom": {}, "magicType": { "type": [ "line", "bar" ] } } }, "dataset": { "source": [ [ "date", "users", "activeusers", "editCount", "articles", "edits" ], [ "2025-12-20", 94, 28, 127, 12258, 80413 ], [ "2025-12-21", 94, 30, 69, 12262, 80469 ], [ "2025-12-22", 96, 30, 34, 12264, 80493 ], [ "2025-12-23", 96, 30, 23, 12270, 80521 ], [ "2025-12-24", 96, 32, 33, 12277, 80560 ], [ "2025-12-25", 97, 33, 43, 12285, 80583 ], [ "2025-12-26", 99, 33, 94, 12290, 80627 ], [ "2025-12-27", 100, 32, 88, 12299, 80826 ] ] }, "xAxis": [ { "type": "category", "gridIndex": 0, "axisLine": { "lineStyle": { "width": 1.5 } }, "axisLabel": { "fontSize": 12 } }, { "type": "time", "gridIndex": 1, "axisLine": { "lineStyle": { "width": 1.5 } }, "axisLabel": { "fontSize": 12 } } ], "yAxis": [ { "gridIndex": 0, "type": "value", "name": "用戶 / 當日編輯", "axisLabel": { "formatter": "{value}" } }, { "gridIndex": 1, "type": "value", "name": "條目 / 總編輯", "axisLabel": { "formatter": "{value}" } } ], "series": [ { "type": "line", "name": "註冊用戶", "encode": { "x": "date", "y": "users" }, "xAxisIndex": 0, "yAxisIndex": 0, "symbolSize": 6 }, { "type": "line", "name": "活躍用戶", "encode": { "x": "date", "y": "activeusers" }, "xAxisIndex": 0, "yAxisIndex": 0, "symbolSize": 6 }, { "type": "line", "name": "當日編輯量", "encode": { "x": "date", "y": "editCount" }, "xAxisIndex": 0, "yAxisIndex": 0, "symbolSize": 6 }, { "type": "bar", "name": "條目數", "encode": { "x": "date", "y": "articles" }, "xAxisIndex": 1, "yAxisIndex": 1 }, { "type": "bar", "name": "總編輯量", "encode": { "x": "date", "y": "edits" }, "xAxisIndex": 1, "yAxisIndex": 1 } ]
}