{
"project": {
"name": "数据交互(联动)",
"screen": {
"uid": "screen_main",
"type": "screen",
"name": "主页面",
"options": {
"fullscreen-mode": "fill-uniform", "fill-auto-expand": true,
"size": [1920, 1080],
"background-color": "#0c0d0e",
"cross-filter-receive": true,
"select-sync-receive": true
},
"stateOverrides": {},
"widgets": [
{
"uid": "w_pie",
"type": "chart-pie",
"options": {
"position": [208, 190],
"size": [420, 320],
"cross-filter-emit": true,
"select-sync-emit": true,
"category": [["conn_pm", "tbl_pm", "f_month"]],
"value": [["conn_pm", "tbl_pm", "f_sales"]]
},
"stateOverrides": {}
},
{
"uid": "w_bar",
"type": "chart-bar",
"options": {
"position": [1209, 206],
"size": [420, 300],
"cross-filter-receive": true,
"select-sync-receive": true,
"category-field": [["conn_pm", "tbl_pm", "f_month"]],
"metric-fields": [
["conn_pm", "tbl_pm", "f_sales"],
["conn_pm", "tbl_pm", "f_profit"]
]
},
"stateOverrides": {}
},
{
"uid": "w_table",
"type": "basic-table",
"options": {
"position": [1177, 597],
"size": [480, 320],
"select-sync-receive": true,
"table-data-fields": [
["conn_pm", "tbl_pm", "f_month"],
["conn_pm", "tbl_pm", "f_sales"],
["conn_pm", "tbl_pm", "f_profit"]
],
"select-sync-fields": [["conn_pm", "tbl_pm", "f_month"]]
},
"stateOverrides": {}
},
{
"uid": "w_text",
"type": "basic-text",
"options": {
"position": [311, 744],
"size": [300, 60],
"text": "文本",
"value-field": [["conn_pm", "tbl_pm", "f_month"]]
},
"stateOverrides": {}
}
]
},
"screens": [],
"params": {},
"settings": {}
},
"connections": [
{
"uid": "conn_pm",
"name": "PostMessage数据源",
"type": "postMessage",
"connectorType": "postMessage",
"config": { "linkId": "link_demo", "responseMode": "实时更新" },
"tables": [
{
"uid": "tbl_pm",
"name": "data",
"eventName": "data",
"eventParams": "",
"fields": [
{ "uid": "f_month", "sourceField": "month", "alias": "month", "type": "string" },
{ "uid": "f_sales", "sourceField": "sales", "alias": "sales", "type": "number" },
{ "uid": "f_profit", "sourceField": "profit", "alias": "profit", "type": "number" }
]
}
]
}
],
"connectionData": {
"conn_pm": [
{
"tableId": "tbl_pm",
"tableName": "data",
"fields": [
{ "uid": "f_month", "sourceField": "month", "alias": "month", "type": "string" },
{ "uid": "f_sales", "sourceField": "sales", "alias": "sales", "type": "number" },
{ "uid": "f_profit", "sourceField": "profit", "alias": "profit", "type": "number" }
],
"rows": [
{ "f_month": "一月", "f_sales": 16000, "f_profit": 110 },
{ "f_month": "二月", "f_sales": 19000, "f_profit": 230 },
{ "f_month": "三月", "f_sales": 15000, "f_profit": 340 }
]
}
]
},
"dataRules": []
}