Files
final-practice/viz_data.json
2026-06-18 14:15:53 +08:00

38 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"description": "学生考试成绩数据 - 可同时绘制 5 种图(条形图/折线图/饼图/雷达图/散点图)",
"bar_chart": {
"title": "各学生数学成绩对比",
"x": ["张三", "李四", "王五", "赵六", "钱七", "孙八", "周九", "吴十", "郑明", "王芳"],
"y": [92, 88, 76, 85, 90, 82, 78, 95, 72, 88]
},
"line_chart": {
"title": "班级各科平均分趋势6个月",
"month": ["1月", "2月", "3月", "4月", "5月", "6月"],
"语文": [78, 80, 82, 85, 83, 86],
"数学": [82, 84, 85, 87, 88, 90],
"英语": [80, 82, 81, 84, 85, 87]
},
"pie_chart": {
"title": "班级成绩等级分布",
"labels": ["优秀(>=90)", "良好(80-89)", "中等(70-79)", "待提高(<70)"],
"values": [1, 7, 2, 0]
},
"radar_chart": {
"title": "三位学生五科成绩对比",
"categories": ["语文", "数学", "英语", "物理", "化学"],
"students": {
"张三": [85, 92, 78, 88, 90],
"李四": [78, 88, 92, 75, 82],
"王五": [92, 76, 85, 90, 78]
}
},
"scatter_chart": {
"title": "学习时长 vs 数学成绩",
"x_label": "每周学习时长(小时)",
"y_label": "数学成绩",
"x": [3, 5, 4, 6, 5, 4, 5, 6, 2, 7],
"y": [92, 88, 76, 85, 90, 82, 78, 95, 72, 88],
"labels": ["张三", "李四", "王五", "赵六", "钱七", "孙八", "周九", "吴十", "郑明", "王芳"]
}
}