{ "widgettype": "VBox", "options": { "width": "100%", "height": "100%", "padding": "20px", "bgcolor": "#f0f2f5" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "Dashboard", "fontSize": "24px", "fontWeight": "bold", "color": "#333", "marginBottom": "20px" } }, { "widgettype": "RefreshWidget", "id": "cards_refresh", "options": { "period_seconds": 10, "url": "{{entire_url('api/dashboard_cards.dspy')}}" } }, { "widgettype": "VBox", "id": "chart_section", "options": { "bgcolor": "#FFFFFF", "padding": "24px", "borderRadius": "8px", "marginTop": "20px", "minHeight": "350px", "boxShadow": "0 2px 8px rgba(0,0,0,0.1)" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "Top 3 模型(今日)", "fontSize": "18px", "fontWeight": "bold", "color": "#333", "marginBottom": "16px" } }, { "widgettype": "ChartBar", "id": "top_models_chart", "options": { "height": "300px", "width": "100%", "data_url": "{{entire_url('api/get_top_models.dspy')}}", "nameField": "model_name", "valueFields": ["cnt", "total_amount"], "refresh_period": 10 } } ] } ] }