1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
| { "type": "viz-card", "display": "block", "layout": "dashboard", "components": [ { "id": "card_title", "type": "viz-text", "slot": "header", "content": "市场收益分析报告", "style": { "font_size": "24px", "font_weight": "bold", "color": "#1f2937", "text_align": "center" } }, { "id": "main_chart", "type": "viz-chart", "slot": "main", "chart_type": "line", "config": { "width": "100%", "height": "300px" }, "data": { "columns": [ {"key": "date", "type": "date", "label": "日期"}, {"key": "return", "type": "number", "label": "收益率", "format": "percentage"} ], "records": [ {"date": "2024-01", "return": 0.08}, {"date": "2024-02", "return": 0.12}, {"date": "2024-03", "return": 0.15}, {"date": "2024-04", "return": 0.11}, {"date": "2024-05", "return": 0.18} ] }, chart_spec: { dataset: [{values: [...]}], view: { main: { layers: [ {type: "line", encode: {x: "date", y: "return"} } ] } } } }, { "id": "data_source", "type": "viz-text", "slot": "footer-left", "content": "数据来源:Wind金融终端", "style": { "font_size": "12px", "color": "#6b7280" } }, { "id": "brand_logo", "type": "viz-badge", "slot": "footer-right", "content": "AI Invest", "style": { "background": "#3b82f6", "color": "white", "border_radius": "6px", "padding": "4px 8px", "font_size": "12px" } } ], "style": { "card_padding": "20px", "border_radius": "12px", "background": "#ffffff", "border": "1px solid #e5e7eb" } }
|