fix: ChartPie加pie_options/ChartScatter改xField/yField/sizeField

This commit is contained in:
yumoqing 2026-07-23 11:21:32 +08:00
parent dbcf33ff8c
commit 698dc940b4
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@
"height": "200px", "height": "200px",
"data_url": "/sage_datamart/api/currency_stats.dspy", "data_url": "/sage_datamart/api/currency_stats.dspy",
"nameField": "currency", "nameField": "currency",
"valueFields": ["call_count"] "valueFields": ["call_count"],
"pie_options": {"type": "pie", "radius": "60%"}
} }
} }

View File

@ -4,6 +4,8 @@
"height": "240px", "height": "240px",
"data_url": "/sage_datamart/api/provider_roi.dspy", "data_url": "/sage_datamart/api/provider_roi.dspy",
"nameField": "model", "nameField": "model",
"valueFields": ["unit_price", "avg_ttft_ms", "total_calls"] "xField": "unit_price",
"yField": "avg_ttft_ms",
"sizeField": "total_calls"
} }
} }