diff --git a/evaluations/datastes/chart/area/eval.json b/evaluations/datastes/chart/area/eval.json new file mode 100644 index 0000000..c3b7443 --- /dev/null +++ b/evaluations/datastes/chart/area/eval.json @@ -0,0 +1,128 @@ +[ + { + "type": "text2chart", + "question": "展示过去一周每天的平均温度,周一温度为15°C,周二温度为16°C,周三温度为15.5°C,周四温度为17°C,周五温度为18°C,周六温度为19°C,周日温度为20°C。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"周一\",\"value\":15},{\"time\":\"周二\",\"value\":16},{\"time\":\"周三\",\"value\":15.5},{\"time\":\"周四\",\"value\":17},{\"time\":\"周五\",\"value\":18},{\"time\":\"周六\",\"value\":19},{\"time\":\"周日\",\"value\":20}],\"title\":\"过去一周每天的平均温度变化\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"平均温度(°C)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"周一\",\"value\":15},{\"time\":\"周二\",\"value\":16},{\"time\":\"周三\",\"value\":15.5},{\"time\":\"周四\",\"value\":17},{\"time\":\"周五\",\"value\":18},{\"time\":\"周六\",\"value\":19},{\"time\":\"周日\",\"value\":20}],\"title\":\"过去一周每日平均温度\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"温度 (°C)\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "某产品每季度的销售额变化,Q1 销售额为 100,000,Q2 销售额为 110,000,Q3 销售额为 105,000,Q4 销售额为 115,000。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":100000},{\"time\":\"Q2\",\"value\":110000},{\"time\":\"Q3\",\"value\":105000},{\"time\":\"Q4\",\"value\":115000}],\"title\":\"每季度销售额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":100000},{\"time\":\"Q2\",\"value\":110000},{\"time\":\"Q3\",\"value\":105000},{\"time\":\"Q4\",\"value\":115000}],\"title\":\"季度销售额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额 (元)\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "年度降水量变化情况,1月份降水量为78mm,2月份降水量为65mm,3月份降水量为80mm,4月份降水量为120mm,5月份降水量为90mm。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"1月份\",\"value\":78},{\"time\":\"2月份\",\"value\":65},{\"time\":\"3月份\",\"value\":80},{\"time\":\"4月份\",\"value\":120},{\"time\":\"5月份\",\"value\":90}],\"title\":\"年度降水量变化\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"降水量(mm)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"1月\",\"value\":78},{\"time\":\"2月\",\"value\":65},{\"time\":\"3月\",\"value\":80},{\"time\":\"4月\",\"value\":120},{\"time\":\"5月\",\"value\":90}],\"title\":\"年度降水量变化\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"降水量 (mm)\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "展示某网站每天的访客数,星期一有2500访客,星期二有3000访客,星期三有2800访客,星期四有3200访客,星期五有3500访客。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"星期一\",\"value\":2500},{\"time\":\"星期二\",\"value\":3000},{\"time\":\"星期三\",\"value\":2800},{\"time\":\"星期四\",\"value\":3200},{\"time\":\"星期五\",\"value\":3500}],\"title\":\"某网站每天访客数变化\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"访客数\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"星期一\",\"value\":2500},{\"time\":\"星期二\",\"value\":3000},{\"time\":\"星期三\",\"value\":2800},{\"time\":\"星期四\",\"value\":3200},{\"time\":\"星期五\",\"value\":3500}],\"title\":\"网站日均访客量\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"访客数\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "比较两个品牌的季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用堆叠面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌市场份额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额(%)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌市场份额季度比较\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额 (%)\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "某公司从 2020 年到 2024 年在不同市场的销售数据如下:美国市场分别为 200、220、240、260、280;欧洲市场分别为 150、160、170、180、190。请绘制堆叠面积图展示销售数据。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":200,\"group\":\"美国市场\"},{\"time\":\"2021年\",\"value\":220,\"group\":\"美国市场\"},{\"time\":\"2022年\",\"value\":240,\"group\":\"美国市场\"},{\"time\":\"2023年\",\"value\":260,\"group\":\"美国市场\"},{\"time\":\"2024年\",\"value\":280,\"group\":\"美国市场\"},{\"time\":\"2020年\",\"value\":150,\"group\":\"欧洲市场\"},{\"time\":\"2021年\",\"value\":160,\"group\":\"欧洲市场\"},{\"time\":\"2022年\",\"value\":170,\"group\":\"欧洲市场\"},{\"time\":\"2023年\",\"value\":180,\"group\":\"欧洲市场\"},{\"time\":\"2024年\",\"value\":190,\"group\":\"欧洲市场\"}],\"stack\":true,\"title\":\"2020年到2024年不同市场销售数据\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":200,\"group\":\"美国\"},{\"time\":\"2021年\",\"value\":220,\"group\":\"美国\"},{\"time\":\"2022年\",\"value\":240,\"group\":\"美国\"},{\"time\":\"2023年\",\"value\":260,\"group\":\"美国\"},{\"time\":\"2024年\",\"value\":280,\"group\":\"美国\"},{\"time\":\"2020年\",\"value\":150,\"group\":\"欧洲\"},{\"time\":\"2021年\",\"value\":160,\"group\":\"欧洲\"},{\"time\":\"2022年\",\"value\":170,\"group\":\"欧洲\"},{\"time\":\"2023年\",\"value\":180,\"group\":\"欧洲\"},{\"time\":\"2024年\",\"value\":190,\"group\":\"欧洲\"}],\"stack\":true,\"title\":\"不同市场销售数据\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "在过去的三年中,某公司线上和线下销售的收入变化如下:线上收入分别为 1000、1100、1200,线下收入分别为 800、850、900。用堆叠面积图展示这些数据。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":1000,\"group\":\"线上\"},{\"time\":\"2021年\",\"value\":1100,\"group\":\"线上\"},{\"time\":\"2022年\",\"value\":1200,\"group\":\"线上\"},{\"time\":\"2020年\",\"value\":800,\"group\":\"线下\"},{\"time\":\"2021年\",\"value\":850,\"group\":\"线下\"},{\"time\":\"2022年\",\"value\":900,\"group\":\"线下\"}],\"stack\":true,\"title\":\"线上与线下销售收入变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"收入(万元)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"第一年\",\"value\":1000,\"group\":\"线上\"},{\"time\":\"第二年\",\"value\":1100,\"group\":\"线上\"},{\"time\":\"第三年\",\"value\":1200,\"group\":\"线上\"},{\"time\":\"第一年\",\"value\":800,\"group\":\"线下\"},{\"time\":\"第二年\",\"value\":850,\"group\":\"线下\"},{\"time\":\"第三年\",\"value\":900,\"group\":\"线下\"}],\"stack\":true,\"title\":\"线上与线下销售收入变化\",\"axisXTitle\":\"年度\",\"axisYTitle\":\"收入\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "比较品牌A与品牌B在季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌A与品牌B季度市场份额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额(%)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌A与品牌B市场份额季度比较\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额 (%)\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{ \"month\": \"Jan\", \"value\": 300 }, { \"month\": \"Feb\", \"value\": 450 }, { \"month\": \"Mar\", \"value\": 700 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":300},{\"time\":\"Feb\",\"value\":450},{\"time\":\"Mar\",\"value\":700}],\"axisXTitle\": \"month\",\"axisYTitle\": \"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":300},{\"time\":\"Feb\",\"value\":450},{\"time\":\"Mar\",\"value\":700}],\"axisXTitle\":\"month\",\"axisYTitle\":\"value\",\"title\":\"Monthly Data\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "使用面积图展示我的数据 [{ \"quarter\": 1, \"value\": 1200 }, { \"quarter\": 2, \"value\": 1100 }, { \"quarter\": 3, \"value\": 1400 }, { \"quarter\": 4, \"value\": 900 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1100},{\"time\":3,\"value\":1400},{\"time\":4,\"value\":900}],\"axisXTitle\": \"季度\",\"axisYTitle\": \"价值\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1100},{\"time\":3,\"value\":1400},{\"time\":4,\"value\":900}],\"axisXTitle\":\"quarter\",\"axisYTitle\":\"value\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "创建一个面积图显示每日用户活跃度变化情况,数据如下:[{\"day\": 1, \"value\": 1200}, {\"day\": 2, \"value\": 1300}, {\"day\": 3, \"value\": 1400}]。请将x轴命名为'日期', y轴命名为'活跃用户数'", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1300},{\"time\":3,\"value\":1400}],\"axisXTitle\":\"日期\",\"axisYTitle\":\"活跃用户数\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1300},{\"time\":3,\"value\":1400}],\"axisXTitle\":\"日期\",\"axisYTitle\":\"活跃用户数\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "请用面积图可视化 [{ \"year\": 2020, \"value\": 5000 }, { \"year\": 2021, \"value\": 7500 }, { \"year\": 2022, \"value\": 6200 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":5000},{\"time\":2021,\"value\":7500},{\"time\":2022,\"value\":6200}],\"axisXTitle\": \"year\",\"axisYTitle\": \"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":5000},{\"time\":2021,\"value\":7500},{\"time\":2022,\"value\":6200}],\"axisXTitle\":\"year\",\"axisYTitle\":\"value\",\"title\":\"Yearly Overview\"}", + "reference": ["面积图 - Area Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用堆叠面积图展示 [{\"year\": \"2020\",\"value\": 200,\"department\": \"Sales\"}, {\"year\": \"2020\",\"value\": 150,\"department\": \"HR\"}, {\"year\": \"2021\",\"value\": 300,\"department\": \"Sales\"}, {\"year\": \"2021\",\"value\": 180,\"department\": \"HR\"}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020\",\"value\":200,\"group\":\"Sales\"},{\"time\":\"2020\",\"value\":150,\"group\":\"HR\"},{\"time\":\"2021\",\"value\":300,\"group\":\"Sales\"},{\"time\":\"2021\",\"value\":180,\"group\":\"HR\"}],\"stack\":true,\"title\": \"各部门年度价值变化\",\"axisXTitle\": \"年份\",\"axisYTitle\": \"价值\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":200,\"group\":\"Sales\"},{\"time\":2020,\"value\":150,\"group\":\"HR\"},{\"time\":2021,\"value\":300,\"group\":\"Sales\"},{\"time\":2021,\"value\":180,\"group\":\"HR\"}],\"stack\":true,\"axisXTitle\":\"year\",\"axisYTitle\":\"value\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用堆叠面积图展示数据 [{ \"month\": \"Apr\", \"value\": 200, \"group\": \"A\" }, { \"month\": \"Apr\", \"value\": 400, \"group\": \"B\" }, { \"month\": \"May\", \"value\": 350, \"group\": \"A\" }, { \"month\": \"May\", \"value\": 450, \"group\": \"B\" }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Apr\",\"value\":200,\"group\":\"A\"},{\"time\":\"Apr\",\"value\":400,\"group\":\"B\"},{\"time\":\"May\",\"value\":350,\"group\":\"A\"},{\"time\":\"May\",\"value\":450,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Apr\",\"value\":200,\"group\":\"A\"},{\"time\":\"Apr\",\"value\":400,\"group\":\"B\"},{\"time\":\"May\",\"value\":350,\"group\":\"A\"},{\"time\":\"May\",\"value\":450,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\",\"title\":\"Stacked Monthly Data\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]. 同时我希望开启堆叠效果。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"产品线A\"},{\"time\":2016,\"value\":1200,\"group\":\"产品线A\"},{\"time\":2015,\"value\":800,\"group\":\"产品线B\"},{\"time\":2016,\"value\":900,\"group\":\"产品线B\"}],\"stack\":true,\"title\":\"不同产品线年度利润变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"A\"},{\"time\":2016,\"value\":1200,\"group\":\"A\"},{\"time\":2015,\"value\":800,\"group\":\"B\"},{\"time\":2016,\"value\":900,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "使用堆叠面积图来展示以下两个系列的数据:series A: [{\"month\": 1, \"value\": 200}, {\"month\": 2, \"value\": 300}], series B: [{\"month\": 1, \"value\": 150}, {\"month\": 2, \"value\": 250}]. 并给图表加上标题'月度销售趋势'", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":200,\"group\":\"series A\"},{\"time\":2,\"value\":300,\"group\":\"series A\"},{\"time\":1,\"value\":150,\"group\":\"series B\"},{\"time\":2,\"value\":250,\"group\":\"series B\"}],\"stack\":true,\"title\":\"月度销售趋势\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":200,\"group\":\"A\"},{\"time\":2,\"value\":300,\"group\":\"A\"},{\"time\":1,\"value\":150,\"group\":\"B\"},{\"time\":2,\"value\":250,\"group\":\"B\"}],\"stack\":true,\"title\":\"月度销售趋势\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 图表用法 数据要求"] + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{\"month\": \"Jan\", \"value\": 120, \"category\": \"A\"}, {\"month\": \"Jan\", \"value\": 80, \"category\": \"B\"}, {\"month\": \"Feb\", \"value\": 150, \"category\": \"A\"}, {\"month\": \"Feb\", \"value\": 90, \"category\": \"B\"}, {\"month\": \"Mar\", \"value\": 180, \"category\": \"A\"}, {\"month\": \"Mar\", \"value\": 110, \"category\": \"B\"}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":120,\"group\":\"A\"},{\"time\":\"Jan\",\"value\":80,\"group\":\"B\"},{\"time\":\"Feb\",\"value\":150,\"group\":\"A\"},{\"time\":\"Feb\",\"value\":90,\"group\":\"B\"},{\"time\":\"Mar\",\"value\":180,\"group\":\"A\"},{\"time\":\"Mar\",\"value\":110,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":120,\"group\":\"A\"},{\"time\":\"Jan\",\"value\":80,\"group\":\"B\"},{\"time\":\"Feb\",\"value\":150,\"group\":\"A\"},{\"time\":\"Feb\",\"value\":90,\"group\":\"B\"},{\"time\":\"Mar\",\"value\":180,\"group\":\"A\"},{\"time\":\"Mar\",\"value\":110,\"group\":\"B\"}],\"stack\":true,\"title\":\"每月销售类别对比\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"产品线A\"},{\"time\":2016,\"value\":1200,\"group\":\"产品线A\"},{\"time\":2015,\"value\":800,\"group\":\"产品线B\"},{\"time\":2016,\"value\":900,\"group\":\"产品线B\"}],\"stack\":true,\"title\":\"不同产品线年度利润变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"A\"},{\"time\":2016,\"value\":1200,\"group\":\"A\"},{\"time\":2015,\"value\":800,\"group\":\"B\"},{\"time\":2016,\"value\":900,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "reference": ["面积图 - Area Chart 使用示例"] + } +] diff --git a/evaluations/datastes/chart/area/metrics.json b/evaluations/datastes/chart/area/metrics.json new file mode 100644 index 0000000..26349dc --- /dev/null +++ b/evaluations/datastes/chart/area/metrics.json @@ -0,0 +1,146 @@ +[ + { + "type": "text2chart", + "question": "展示过去一周每天的平均温度,周一温度为15°C,周二温度为16°C,周三温度为15.5°C,周四温度为17°C,周五温度为18°C,周六温度为19°C,周日温度为20°C。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"周一\",\"value\":15},{\"time\":\"周二\",\"value\":16},{\"time\":\"周三\",\"value\":15.5},{\"time\":\"周四\",\"value\":17},{\"time\":\"周五\",\"value\":18},{\"time\":\"周六\",\"value\":19},{\"time\":\"周日\",\"value\":20}],\"title\":\"过去一周每天的平均温度变化\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"平均温度(°C)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"周一\",\"value\":15},{\"time\":\"周二\",\"value\":16},{\"time\":\"周三\",\"value\":15.5},{\"time\":\"周四\",\"value\":17},{\"time\":\"周五\",\"value\":18},{\"time\":\"周六\",\"value\":19},{\"time\":\"周日\",\"value\":20}],\"title\":\"过去一周每日平均温度\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"温度 (°C)\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某产品每季度的销售额变化,Q1 销售额为 100,000,Q2 销售额为 110,000,Q3 销售额为 105,000,Q4 销售额为 115,000。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":100000},{\"time\":\"Q2\",\"value\":110000},{\"time\":\"Q3\",\"value\":105000},{\"time\":\"Q4\",\"value\":115000}],\"title\":\"每季度销售额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":100000},{\"time\":\"Q2\",\"value\":110000},{\"time\":\"Q3\",\"value\":105000},{\"time\":\"Q4\",\"value\":115000}],\"title\":\"季度销售额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额 (元)\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "年度降水量变化情况,1月份降水量为78mm,2月份降水量为65mm,3月份降水量为80mm,4月份降水量为120mm,5月份降水量为90mm。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"1月份\",\"value\":78},{\"time\":\"2月份\",\"value\":65},{\"time\":\"3月份\",\"value\":80},{\"time\":\"4月份\",\"value\":120},{\"time\":\"5月份\",\"value\":90}],\"title\":\"年度降水量变化\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"降水量(mm)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"1月\",\"value\":78},{\"time\":\"2月\",\"value\":65},{\"time\":\"3月\",\"value\":80},{\"time\":\"4月\",\"value\":120},{\"time\":\"5月\",\"value\":90}],\"title\":\"年度降水量变化\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"降水量 (mm)\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "展示某网站每天的访客数,星期一有2500访客,星期二有3000访客,星期三有2800访客,星期四有3200访客,星期五有3500访客。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"星期一\",\"value\":2500},{\"time\":\"星期二\",\"value\":3000},{\"time\":\"星期三\",\"value\":2800},{\"time\":\"星期四\",\"value\":3200},{\"time\":\"星期五\",\"value\":3500}],\"title\":\"某网站每天访客数变化\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"访客数\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"星期一\",\"value\":2500},{\"time\":\"星期二\",\"value\":3000},{\"time\":\"星期三\",\"value\":2800},{\"time\":\"星期四\",\"value\":3200},{\"time\":\"星期五\",\"value\":3500}],\"title\":\"网站日均访客量\",\"axisXTitle\":\"星期\",\"axisYTitle\":\"访客数\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "比较两个品牌的季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用堆叠面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌市场份额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额(%)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌市场份额季度比较\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额 (%)\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某公司从 2020 年到 2024 年在不同市场的销售数据如下:美国市场分别为 200、220、240、260、280;欧洲市场分别为 150、160、170、180、190。请绘制堆叠面积图展示销售数据。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":200,\"group\":\"美国市场\"},{\"time\":\"2021年\",\"value\":220,\"group\":\"美国市场\"},{\"time\":\"2022年\",\"value\":240,\"group\":\"美国市场\"},{\"time\":\"2023年\",\"value\":260,\"group\":\"美国市场\"},{\"time\":\"2024年\",\"value\":280,\"group\":\"美国市场\"},{\"time\":\"2020年\",\"value\":150,\"group\":\"欧洲市场\"},{\"time\":\"2021年\",\"value\":160,\"group\":\"欧洲市场\"},{\"time\":\"2022年\",\"value\":170,\"group\":\"欧洲市场\"},{\"time\":\"2023年\",\"value\":180,\"group\":\"欧洲市场\"},{\"time\":\"2024年\",\"value\":190,\"group\":\"欧洲市场\"}],\"stack\":true,\"title\":\"2020年到2024年不同市场销售数据\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":200,\"group\":\"美国\"},{\"time\":\"2021年\",\"value\":220,\"group\":\"美国\"},{\"time\":\"2022年\",\"value\":240,\"group\":\"美国\"},{\"time\":\"2023年\",\"value\":260,\"group\":\"美国\"},{\"time\":\"2024年\",\"value\":280,\"group\":\"美国\"},{\"time\":\"2020年\",\"value\":150,\"group\":\"欧洲\"},{\"time\":\"2021年\",\"value\":160,\"group\":\"欧洲\"},{\"time\":\"2022年\",\"value\":170,\"group\":\"欧洲\"},{\"time\":\"2023年\",\"value\":180,\"group\":\"欧洲\"},{\"time\":\"2024年\",\"value\":190,\"group\":\"欧洲\"}],\"stack\":true,\"title\":\"不同市场销售数据\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "在过去的三年中,某公司线上和线下销售的收入变化如下:线上收入分别为 1000、1100、1200,线下收入分别为 800、850、900。用堆叠面积图展示这些数据。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020年\",\"value\":1000,\"group\":\"线上\"},{\"time\":\"2021年\",\"value\":1100,\"group\":\"线上\"},{\"time\":\"2022年\",\"value\":1200,\"group\":\"线上\"},{\"time\":\"2020年\",\"value\":800,\"group\":\"线下\"},{\"time\":\"2021年\",\"value\":850,\"group\":\"线下\"},{\"time\":\"2022年\",\"value\":900,\"group\":\"线下\"}],\"stack\":true,\"title\":\"线上与线下销售收入变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"收入(万元)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"第一年\",\"value\":1000,\"group\":\"线上\"},{\"time\":\"第二年\",\"value\":1100,\"group\":\"线上\"},{\"time\":\"第三年\",\"value\":1200,\"group\":\"线上\"},{\"time\":\"第一年\",\"value\":800,\"group\":\"线下\"},{\"time\":\"第二年\",\"value\":850,\"group\":\"线下\"},{\"time\":\"第三年\",\"value\":900,\"group\":\"线下\"}],\"stack\":true,\"title\":\"线上与线下销售收入变化\",\"axisXTitle\":\"年度\",\"axisYTitle\":\"收入\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "比较品牌A与品牌B在季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用面积图可视化", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌A与品牌B季度市场份额变化\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额(%)\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Q1\",\"value\":20,\"group\":\"品牌A\"},{\"time\":\"Q2\",\"value\":25,\"group\":\"品牌A\"},{\"time\":\"Q3\",\"value\":30,\"group\":\"品牌A\"},{\"time\":\"Q4\",\"value\":35,\"group\":\"品牌A\"},{\"time\":\"Q1\",\"value\":80,\"group\":\"品牌B\"},{\"time\":\"Q2\",\"value\":75,\"group\":\"品牌B\"},{\"time\":\"Q3\",\"value\":70,\"group\":\"品牌B\"},{\"time\":\"Q4\",\"value\":65,\"group\":\"品牌B\"}],\"stack\":true,\"title\":\"品牌A与品牌B市场份额季度比较\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额 (%)\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{ \"month\": \"Jan\", \"value\": 300 }, { \"month\": \"Feb\", \"value\": 450 }, { \"month\": \"Mar\", \"value\": 700 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":300},{\"time\":\"Feb\",\"value\":450},{\"time\":\"Mar\",\"value\":700}],\"axisXTitle\": \"month\",\"axisYTitle\": \"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":300},{\"time\":\"Feb\",\"value\":450},{\"time\":\"Mar\",\"value\":700}],\"axisXTitle\":\"month\",\"axisYTitle\":\"value\",\"title\":\"Monthly Data\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用面积图展示我的数据 [{ \"quarter\": 1, \"value\": 1200 }, { \"quarter\": 2, \"value\": 1100 }, { \"quarter\": 3, \"value\": 1400 }, { \"quarter\": 4, \"value\": 900 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1100},{\"time\":3,\"value\":1400},{\"time\":4,\"value\":900}],\"axisXTitle\": \"季度\",\"axisYTitle\": \"价值\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1100},{\"time\":3,\"value\":1400},{\"time\":4,\"value\":900}],\"axisXTitle\":\"quarter\",\"axisYTitle\":\"value\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "创建一个面积图显示每日用户活跃度变化情况,数据如下:[{\"day\": 1, \"value\": 1200}, {\"day\": 2, \"value\": 1300}, {\"day\": 3, \"value\": 1400}]。请将x轴命名为'日期', y轴命名为'活跃用户数'", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1300},{\"time\":3,\"value\":1400}],\"axisXTitle\":\"日期\",\"axisYTitle\":\"活跃用户数\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":1200},{\"time\":2,\"value\":1300},{\"time\":3,\"value\":1400}],\"axisXTitle\":\"日期\",\"axisYTitle\":\"活跃用户数\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "请用面积图可视化 [{ \"year\": 2020, \"value\": 5000 }, { \"year\": 2021, \"value\": 7500 }, { \"year\": 2022, \"value\": 6200 }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":5000},{\"time\":2021,\"value\":7500},{\"time\":2022,\"value\":6200}],\"axisXTitle\": \"year\",\"axisYTitle\": \"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":5000},{\"time\":2021,\"value\":7500},{\"time\":2022,\"value\":6200}],\"axisXTitle\":\"year\",\"axisYTitle\":\"value\",\"title\":\"Yearly Overview\"}", + "reference": ["面积图 - Area Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用堆叠面积图展示 [{\"year\": \"2020\",\"value\": 200,\"department\": \"Sales\"}, {\"year\": \"2020\",\"value\": 150,\"department\": \"HR\"}, {\"year\": \"2021\",\"value\": 300,\"department\": \"Sales\"}, {\"year\": \"2021\",\"value\": 180,\"department\": \"HR\"}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"2020\",\"value\":200,\"group\":\"Sales\"},{\"time\":\"2020\",\"value\":150,\"group\":\"HR\"},{\"time\":\"2021\",\"value\":300,\"group\":\"Sales\"},{\"time\":\"2021\",\"value\":180,\"group\":\"HR\"}],\"stack\":true,\"title\": \"各部门年度价值变化\",\"axisXTitle\": \"年份\",\"axisYTitle\": \"价值\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2020,\"value\":200,\"group\":\"Sales\"},{\"time\":2020,\"value\":150,\"group\":\"HR\"},{\"time\":2021,\"value\":300,\"group\":\"Sales\"},{\"time\":2021,\"value\":180,\"group\":\"HR\"}],\"stack\":true,\"axisXTitle\":\"year\",\"axisYTitle\":\"value\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用堆叠面积图展示数据 [{ \"month\": \"Apr\", \"value\": 200, \"group\": \"A\" }, { \"month\": \"Apr\", \"value\": 400, \"group\": \"B\" }, { \"month\": \"May\", \"value\": 350, \"group\": \"A\" }, { \"month\": \"May\", \"value\": 450, \"group\": \"B\" }]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Apr\",\"value\":200,\"group\":\"A\"},{\"time\":\"Apr\",\"value\":400,\"group\":\"B\"},{\"time\":\"May\",\"value\":350,\"group\":\"A\"},{\"time\":\"May\",\"value\":450,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Apr\",\"value\":200,\"group\":\"A\"},{\"time\":\"Apr\",\"value\":400,\"group\":\"B\"},{\"time\":\"May\",\"value\":350,\"group\":\"A\"},{\"time\":\"May\",\"value\":450,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\",\"title\":\"Stacked Monthly Data\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]. 同时我希望开启堆叠效果。", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"产品线A\"},{\"time\":2016,\"value\":1200,\"group\":\"产品线A\"},{\"time\":2015,\"value\":800,\"group\":\"产品线B\"},{\"time\":2016,\"value\":900,\"group\":\"产品线B\"}],\"stack\":true,\"title\":\"不同产品线年度利润变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"A\"},{\"time\":2016,\"value\":1200,\"group\":\"A\"},{\"time\":2015,\"value\":800,\"group\":\"B\"},{\"time\":2016,\"value\":900,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用堆叠面积图来展示以下两个系列的数据:series A: [{\"month\": 1, \"value\": 200}, {\"month\": 2, \"value\": 300}], series B: [{\"month\": 1, \"value\": 150}, {\"month\": 2, \"value\": 250}]. 并给图表加上标题'月度销售趋势'", + "response": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":200,\"group\":\"series A\"},{\"time\":2,\"value\":300,\"group\":\"series A\"},{\"time\":1,\"value\":150,\"group\":\"series B\"},{\"time\":2,\"value\":250,\"group\":\"series B\"}],\"stack\":true,\"title\":\"月度销售趋势\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":1,\"value\":200,\"group\":\"A\"},{\"time\":2,\"value\":300,\"group\":\"A\"},{\"time\":1,\"value\":150,\"group\":\"B\"},{\"time\":2,\"value\":250,\"group\":\"B\"}],\"stack\":true,\"title\":\"月度销售趋势\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 图表用法 数据要求"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{\"month\": \"Jan\", \"value\": 120, \"category\": \"A\"}, {\"month\": \"Jan\", \"value\": 80, \"category\": \"B\"}, {\"month\": \"Feb\", \"value\": 150, \"category\": \"A\"}, {\"month\": \"Feb\", \"value\": 90, \"category\": \"B\"}, {\"month\": \"Mar\", \"value\": 180, \"category\": \"A\"}, {\"month\": \"Mar\", \"value\": 110, \"category\": \"B\"}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":120,\"group\":\"A\"},{\"time\":\"Jan\",\"value\":80,\"group\":\"B\"},{\"time\":\"Feb\",\"value\":150,\"group\":\"A\"},{\"time\":\"Feb\",\"value\":90,\"group\":\"B\"},{\"time\":\"Mar\",\"value\":180,\"group\":\"A\"},{\"time\":\"Mar\",\"value\":110,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"month\",\"axisYTitle\":\"value\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":\"Jan\",\"value\":120,\"group\":\"A\"},{\"time\":\"Jan\",\"value\":80,\"group\":\"B\"},{\"time\":\"Feb\",\"value\":150,\"group\":\"A\"},{\"time\":\"Feb\",\"value\":90,\"group\":\"B\"},{\"time\":\"Mar\",\"value\":180,\"group\":\"A\"},{\"time\":\"Mar\",\"value\":110,\"group\":\"B\"}],\"stack\":true,\"title\":\"每月销售类别对比\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"销售额\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]", + "response": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"产品线A\"},{\"time\":2016,\"value\":1200,\"group\":\"产品线A\"},{\"time\":2015,\"value\":800,\"group\":\"产品线B\"},{\"time\":2016,\"value\":900,\"group\":\"产品线B\"}],\"stack\":true,\"title\":\"不同产品线年度利润变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "answer": "{\"type\":\"area\",\"data\":[{\"time\":2015,\"value\":1000,\"group\":\"A\"},{\"time\":2016,\"value\":1200,\"group\":\"A\"},{\"time\":2015,\"value\":800,\"group\":\"B\"},{\"time\":2016,\"value\":900,\"group\":\"B\"}],\"stack\":true,\"axisXTitle\":\"年份\",\"axisYTitle\":\"利润\"}", + "reference": ["面积图 - Area Chart 使用示例"], + "correctness": 1 + } +] diff --git a/evaluations/datastes/chart/area/test.json b/evaluations/datastes/chart/area/test.json new file mode 100644 index 0000000..349fc76 --- /dev/null +++ b/evaluations/datastes/chart/area/test.json @@ -0,0 +1,316 @@ +[ + { + "type": "text2chart", + "question": "展示过去一周每天的平均温度,周一温度为15°C,周二温度为16°C,周三温度为15.5°C,周四温度为17°C,周五温度为18°C,周六温度为19°C,周日温度为20°C。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "周一", "value": 15 }, + { "time": "周二", "value": 16 }, + { "time": "周三", "value": 15.5 }, + { "time": "周四", "value": 17 }, + { "time": "周五", "value": 18 }, + { "time": "周六", "value": 19 }, + { "time": "周日", "value": 20 } + ], + "title": "过去一周每日平均温度", + "axisXTitle": "星期", + "axisYTitle": "温度 (°C)" + } + }, + { + "type": "text2chart", + "question": "某产品每季度的销售额变化,Q1 销售额为 100,000,Q2 销售额为 110,000,Q3 销售额为 105,000,Q4 销售额为 115,000。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "Q1", "value": 100000 }, + { "time": "Q2", "value": 110000 }, + { "time": "Q3", "value": 105000 }, + { "time": "Q4", "value": 115000 } + ], + "title": "季度销售额变化", + "axisXTitle": "季度", + "axisYTitle": "销售额 (元)" + } + }, + { + "type": "text2chart", + "question": "年度降水量变化情况,1月份降水量为78mm,2月份降水量为65mm,3月份降水量为80mm,4月份降水量为120mm,5月份降水量为90mm。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "1月", "value": 78 }, + { "time": "2月", "value": 65 }, + { "time": "3月", "value": 80 }, + { "time": "4月", "value": 120 }, + { "time": "5月", "value": 90 } + ], + "title": "年度降水量变化", + "axisXTitle": "月份", + "axisYTitle": "降水量 (mm)" + } + }, + { + "type": "text2chart", + "question": "展示某网站每天的访客数,星期一有2500访客,星期二有3000访客,星期三有2800访客,星期四有3200访客,星期五有3500访客。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "星期一", "value": 2500 }, + { "time": "星期二", "value": 3000 }, + { "time": "星期三", "value": 2800 }, + { "time": "星期四", "value": 3200 }, + { "time": "星期五", "value": 3500 } + ], + "title": "网站日均访客量", + "axisXTitle": "星期", + "axisYTitle": "访客数" + } + }, + { + "type": "text2chart", + "question": "比较两个品牌的季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用堆叠面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "Q1", "value": 20, "group": "品牌A" }, + { "time": "Q2", "value": 25, "group": "品牌A" }, + { "time": "Q3", "value": 30, "group": "品牌A" }, + { "time": "Q4", "value": 35, "group": "品牌A" }, + { "time": "Q1", "value": 80, "group": "品牌B" }, + { "time": "Q2", "value": 75, "group": "品牌B" }, + { "time": "Q3", "value": 70, "group": "品牌B" }, + { "time": "Q4", "value": 65, "group": "品牌B" } + ], + "stack": true, + "title": "品牌市场份额季度比较", + "axisXTitle": "季度", + "axisYTitle": "市场份额 (%)" + } + }, + { + "type": "text2chart", + "question": "某公司从 2020 年到 2024 年在不同市场的销售数据如下:美国市场分别为 200、220、240、260、280;欧洲市场分别为 150、160、170、180、190。请绘制堆叠面积图展示销售数据。", + "answer": { + "type": "area", + "data": [ + { "time": "2020年", "value": 200, "group": "美国" }, + { "time": "2021年", "value": 220, "group": "美国" }, + { "time": "2022年", "value": 240, "group": "美国" }, + { "time": "2023年", "value": 260, "group": "美国" }, + { "time": "2024年", "value": 280, "group": "美国" }, + { "time": "2020年", "value": 150, "group": "欧洲" }, + { "time": "2021年", "value": 160, "group": "欧洲" }, + { "time": "2022年", "value": 170, "group": "欧洲" }, + { "time": "2023年", "value": 180, "group": "欧洲" }, + { "time": "2024年", "value": 190, "group": "欧洲" } + ], + "stack": true, + "title": "不同市场销售数据", + "axisXTitle": "年份", + "axisYTitle": "销售额" + } + }, + { + "type": "text2chart", + "question": "在过去的三年中,某公司线上和线下销售的收入变化如下:线上收入分别为 1000、1100、1200,线下收入分别为 800、850、900。用堆叠面积图展示这些数据。", + "answer": { + "type": "area", + "data": [ + { "time": "第一年", "value": 1000, "group": "线上" }, + { "time": "第二年", "value": 1100, "group": "线上" }, + { "time": "第三年", "value": 1200, "group": "线上" }, + { "time": "第一年", "value": 800, "group": "线下" }, + { "time": "第二年", "value": 850, "group": "线下" }, + { "time": "第三年", "value": 900, "group": "线下" } + ], + "stack": true, + "title": "线上与线下销售收入变化", + "axisXTitle": "年度", + "axisYTitle": "收入" + } + }, + { + "type": "text2chart", + "question": "比较品牌A与品牌B在季度市场份额,品牌A在Q1占20%,Q2占25%,Q3占30%,Q4占35%,品牌B在Q1占80%,Q2占75%,Q3占70%,Q4占65%。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "Q1", "value": 20, "group": "品牌A" }, + { "time": "Q2", "value": 25, "group": "品牌A" }, + { "time": "Q3", "value": 30, "group": "品牌A" }, + { "time": "Q4", "value": 35, "group": "品牌A" }, + { "time": "Q1", "value": 80, "group": "品牌B" }, + { "time": "Q2", "value": 75, "group": "品牌B" }, + { "time": "Q3", "value": 70, "group": "品牌B" }, + { "time": "Q4", "value": 65, "group": "品牌B" } + ], + "stack": true, + "title": "品牌A与品牌B市场份额季度比较", + "axisXTitle": "季度", + "axisYTitle": "市场份额 (%)" + } + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{ \"month\": \"Jan\", \"value\": 300 }, { \"month\": \"Feb\", \"value\": 450 }, { \"month\": \"Mar\", \"value\": 700 }]", + "answer": { + "type": "area", + "data": [ + { "time": "Jan", "value": 300 }, + { "time": "Feb", "value": 450 }, + { "time": "Mar", "value": 700 } + ], + "axisXTitle": "month", + "axisYTitle": "value", + "title": "Monthly Data" + } + }, + { + "type": "data2chart", + "question": "使用面积图展示我的数据 [{ \"quarter\": 1, \"value\": 1200 }, { \"quarter\": 2, \"value\": 1100 }, { \"quarter\": 3, \"value\": 1400 }, { \"quarter\": 4, \"value\": 900 }]", + "answer": { + "type": "area", + "data": [ + { "time": 1, "value": 1200 }, + { "time": 2, "value": 1100 }, + { "time": 3, "value": 1400 }, + { "time": 4, "value": 900 } + ], + "axisXTitle": "quarter", + "axisYTitle": "value" + } + }, + { + "type": "data2chart", + "question": "创建一个面积图显示每日用户活跃度变化情况,数据如下:[{\"day\": 1, \"value\": 1200}, {\"day\": 2, \"value\": 1300}, {\"day\": 3, \"value\": 1400}]。请将x轴命名为'日期', y轴命名为'活跃用户数'", + "answer": { + "type": "area", + "data": [ + { "time": 1, "value": 1200 }, + { "time": 2, "value": 1300 }, + { "time": 3, "value": 1400 } + ], + "axisXTitle": "日期", + "axisYTitle": "活跃用户数" + } + }, + { + "type": "data2chart", + "question": "请用面积图可视化 [{ \"year\": 2020, \"value\": 5000 }, { \"year\": 2021, \"value\": 7500 }, { \"year\": 2022, \"value\": 6200 }]", + "answer": { + "type": "area", + "data": [ + { "time": 2020, "value": 5000 }, + { "time": 2021, "value": 7500 }, + { "time": 2022, "value": 6200 } + ], + "axisXTitle": "year", + "axisYTitle": "value", + "title": "Yearly Overview" + } + }, + + { + "type": "data2chart", + "question": "用堆叠面积图展示 [{\"year\": \"2020\",\"value\": 200,\"department\": \"Sales\"}, {\"year\": \"2020\",\"value\": 150,\"department\": \"HR\"}, {\"year\": \"2021\",\"value\": 300,\"department\": \"Sales\"}, {\"year\": \"2021\",\"value\": 180,\"department\": \"HR\"}]", + "answer": { + "type": "area", + "data": [ + { "time": 2020, "value": 200, "group": "Sales" }, + { "time": 2020, "value": 150, "group": "HR" }, + { "time": 2021, "value": 300, "group": "Sales" }, + { "time": 2021, "value": 180, "group": "HR" } + ], + "stack": true, + "axisXTitle": "year", + "axisYTitle": "value" + } + }, + { + "type": "data2chart", + "question": "用堆叠面积图展示数据 [{ \"month\": \"Apr\", \"value\": 200, \"group\": \"A\" }, { \"month\": \"Apr\", \"value\": 400, \"group\": \"B\" }, { \"month\": \"May\", \"value\": 350, \"group\": \"A\" }, { \"month\": \"May\", \"value\": 450, \"group\": \"B\" }]", + "answer": { + "type": "area", + "data": [ + { "time": "Apr", "value": 200, "group": "A" }, + { "time": "Apr", "value": 400, "group": "B" }, + { "time": "May", "value": 350, "group": "A" }, + { "time": "May", "value": 450, "group": "B" } + ], + "stack": true, + "axisXTitle": "month", + "axisYTitle": "value", + "title": "Stacked Monthly Data" + } + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]. 同时我希望开启堆叠效果。", + "answer": { + "type": "area", + "data": [ + { "time": 2015, "value": 1000, "group": "A" }, + { "time": 2016, "value": 1200, "group": "A" }, + { "time": 2015, "value": 800, "group": "B" }, + { "time": 2016, "value": 900, "group": "B" } + ], + "stack": true, + "axisXTitle": "年份", + "axisYTitle": "利润" + } + }, + { + "type": "data2chart", + "question": "使用堆叠面积图来展示以下两个系列的数据:series A: [{\"month\": 1, \"value\": 200}, {\"month\": 2, \"value\": 300}], series B: [{\"month\": 1, \"value\": 150}, {\"month\": 2, \"value\": 250}]. 并给图表加上标题'月度销售趋势'", + "answer": { + "type": "area", + "data": [ + { "time": 1, "value": 200, "group": "A" }, + { "time": 2, "value": 300, "group": "A" }, + { "time": 1, "value": 150, "group": "B" }, + { "time": 2, "value": 250, "group": "B" } + ], + "stack": true, + "title": "月度销售趋势", + "axisXTitle": "月份", + "axisYTitle": "销售额" + } + }, + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{\"month\": \"Jan\", \"value\": 120, \"category\": \"A\"}, {\"month\": \"Jan\", \"value\": 80, \"category\": \"B\"}, {\"month\": \"Feb\", \"value\": 150, \"category\": \"A\"}, {\"month\": \"Feb\", \"value\": 90, \"category\": \"B\"}, {\"month\": \"Mar\", \"value\": 180, \"category\": \"A\"}, {\"month\": \"Mar\", \"value\": 110, \"category\": \"B\"}]", + "answer": { + "type": "area", + "data": [ + { "time": "Jan", "value": 120, "group": "A" }, + { "time": "Jan", "value": 80, "group": "B" }, + { "time": "Feb", "value": 150, "group": "A" }, + { "time": "Feb", "value": 90, "group": "B" }, + { "time": "Mar", "value": 180, "group": "A" }, + { "time": "Mar", "value": 110, "group": "B" } + ], + "stack": true, + "title": "每月销售类别对比", + "axisXTitle": "月份", + "axisYTitle": "销售额" + } + }, + { + "type": "data2chart", + "question": "我有一组关于不同产品线年度利润的数据,希望能通过面积图展现出来:产品线A: [{\"year\": 2015, \"profit\": 1000}, {\"year\": 2016, \"profit\": 1200}], 产品线B: [{\"year\": 2015, \"profit\": 800}, {\"year\": 2016, \"profit\": 900}]", + "answer": { + "type": "area", + "data": [ + { "time": 2015, "value": 1000, "group": "A" }, + { "time": 2016, "value": 1200, "group": "A" }, + { "time": 2015, "value": 800, "group": "B" }, + { "time": 2016, "value": 900, "group": "B" } + ], + "stack": true, + "axisXTitle": "年份", + "axisYTitle": "利润" + } + } +] diff --git a/evaluations/datastes/chart/bar/eval.json b/evaluations/datastes/chart/bar/eval.json new file mode 100644 index 0000000..835b9f4 --- /dev/null +++ b/evaluations/datastes/chart/bar/eval.json @@ -0,0 +1,142 @@ +[ + { + "type": "text2chart", + "question": "某品牌手机销量的年度变化,2018 年销量为 500 万台,2019 年销量为 750 万台,2020 年销量为 900 万台。用条形图可视化。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年\",\"value\":500},{\"category\":\"2019 年\",\"value\":750},{\"category\":\"2020 年\",\"value\":900}],\"title\":\"某品牌手机销量年度变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销量(万台)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年\",\"value\":500},{\"category\":\"2019 年\",\"value\":750},{\"category\":\"2020 年\",\"value\":900}],\"title\":\"某品牌手机年度销量\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销量 (万台)\"}", + "reference": ["条形图 - Bar Chart 不适用场景"] + }, + { + "type": "text2chart", + "question": "2021 年公司不同部门的预算分配,研发部 50 百万美元,市场部 40 百万美元,销售部 60 百万美元,行政部 20 百万美元。用条形图可视化。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发部\",\"value\":50},{\"category\":\"市场部\",\"value\":40},{\"category\":\"销售部\",\"value\":60},{\"category\":\"行政部\",\"value\":20}],\"title\":\"2021年公司部门预算分配\",\"axisXTitle\":\"部门\",\"axisYTitle\":\"预算(百万元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发部\",\"value\":50},{\"category\":\"市场部\",\"value\":40},{\"category\":\"销售部\",\"value\":60},{\"category\":\"行政部\",\"value\":20}],\"title\":\"2021 年部门预算分配\",\"axisXTitle\":\"部门\",\"axisYTitle\":\"预算 (百万美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "某超市不同水果的月销售量,苹果 2000 千克,香蕉 1500 千克,橙子 1800 千克,葡萄 1200 千克。用条形图显示。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"苹果\",\"value\":2000},{\"category\":\"香蕉\",\"value\":1500},{\"category\":\"橙子\",\"value\":1800},{\"category\":\"葡萄\",\"value\":1200}],\"title\":\"超市水果月销售量\",\"axisXTitle\":\"水果类型\",\"axisYTitle\":\"销售量(千克)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"苹果\",\"value\":2000},{\"category\":\"香蕉\",\"value\":1500},{\"category\":\"橙子\",\"value\":1800},{\"category\":\"葡萄\",\"value\":1200}],\"title\":\"不同水果月销售量\",\"axisXTitle\":\"水果\",\"axisYTitle\":\"销售量 (千克)\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "2022 年四个季度公司 A 和公司 B 的销售额对比,公司 A 分别为 200 万元,250 万元,300 万元 和 350 万元,公司 B 分别为 180 万元,230 万元,280 万元 和 330 万元。用分组条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2022 Q1\",\"value\":200,\"group\":\"公司 A\"},{\"category\":\"2022 Q1\",\"value\":180,\"group\":\"公司 B\"},{\"category\":\"2022 Q2\",\"value\":250,\"group\":\"公司 A\"},{\"category\":\"2022 Q2\",\"value\":230,\"group\":\"公司 B\"},{\"category\":\"2022 Q3\",\"value\":300,\"group\":\"公司 A\"},{\"category\":\"2022 Q3\",\"value\":280,\"group\":\"公司 B\"},{\"category\":\"2022 Q4\",\"value\":350,\"group\":\"公司 A\"},{\"category\":\"2022 Q4\",\"value\":330,\"group\":\"公司 B\"}],\"group\":true,\"title\":\"2022 年四个季度公司 A 和公司 B 销售额对比\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额(万元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":200,\"group\":\"公司 A\"},{\"category\":\"Q1\",\"value\":180,\"group\":\"公司 B\"},{\"category\":\"Q2\",\"value\":250,\"group\":\"公司 A\"},{\"category\":\"Q2\",\"value\":230,\"group\":\"公司 B\"},{\"category\":\"Q3\",\"value\":300,\"group\":\"公司 A\"},{\"category\":\"Q3\",\"value\":280,\"group\":\"公司 B\"},{\"category\":\"Q4\",\"value\":350,\"group\":\"公司 A\"},{\"category\":\"Q4\",\"value\":330,\"group\":\"公司 B\"}],\"group\":true,\"title\":\"2022 年公司 A 和公司 B 的季度销售额对比\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额 (万元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "城市公共交通使用量变化情况,2021 年的地铁和公交车使用量对比,地铁分别为 120 万人次,公交车分别为 80 万人次;2022 年地铁分别为 130 万人次,公交车分别为 85 万人次。用分组条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2021 年\",\"value\":120,\"group\":\"地铁\"},{\"category\":\"2021 年\",\"value\":80,\"group\":\"公交车\"},{\"category\":\"2022 年\",\"value\":130,\"group\":\"地铁\"},{\"category\":\"2022 年\",\"value\":85,\"group\":\"公交车\"}],\"group\":true,\"title\":\"城市公共交通使用量变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"使用量(万人次)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"2021 年\",\"value\":120,\"group\":\"地铁\"},{\"category\":\"2021 年\",\"value\":80,\"group\":\"公交车\"},{\"category\":\"2022 年\",\"value\":130,\"group\":\"地铁\"},{\"category\":\"2022 年\",\"value\":85,\"group\":\"公交车\"}],\"group\":true,\"title\":\"城市公共交通使用量变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"使用量 (万人次)\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "五大科技公司 2023 年的季度营收增长情况,Apple 分别为 500 亿美元,520 亿美元,550 亿美元 和 600 亿美元,Google 分别为 450 亿美元,480 亿美元,500 亿美元 和 530 亿美元。用堆叠条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":500,\"group\":\"Apple\"},{\"category\":\"Q2\",\"value\":520,\"group\":\"Apple\"},{\"category\":\"Q3\",\"value\":550,\"group\":\"Apple\"},{\"category\":\"Q4\",\"value\":600,\"group\":\"Apple\"},{\"category\":\"Q1\",\"value\":450,\"group\":\"Google\"},{\"category\":\"Q2\",\"value\":480,\"group\":\"Google\"},{\"category\":\"Q3\",\"value\":500,\"group\":\"Google\"},{\"category\":\"Q4\",\"value\":530,\"group\":\"Google\"}],\"stack\":true,\"title\":\"五大科技公司 2023 年季度营收增长\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"营收(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":500,\"group\":\"Apple\"},{\"category\":\"Q1\",\"value\":450,\"group\":\"Google\"},{\"category\":\"Q2\",\"value\":520,\"group\":\"Apple\"},{\"category\":\"Q2\",\"value\":480,\"group\":\"Google\"},{\"category\":\"Q3\",\"value\":550,\"group\":\"Apple\"},{\"category\":\"Q3\",\"value\":500,\"group\":\"Google\"},{\"category\":\"Q4\",\"value\":600,\"group\":\"Apple\"},{\"category\":\"Q4\",\"value\":530,\"group\":\"Google\"}],\"stack\":true,\"title\":\"2023 年五大科技公司季度营收增长\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"营收 (亿美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "2019 年与 2023 年各大洲旅游收入对比,亚洲分别是 400 亿美元 与 550 亿美元,欧洲分别是 380 亿美元 与 520 亿美元,美洲分别是 350 亿美元 与 480 亿美元。用堆叠条形图可视化", + "response": "{\"type\":\"bar-stacked\",\"data\":[{\"year\":\"2019\",\"Asia\":400,\"Europe\":380,\"America\":350},{\"year\":\"2023\",\"Asia\":550,\"Europe\":520,\"America\":480}],\"title\":\"各大洲旅游收入对比\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"旅游收入(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"亚洲\",\"value\":400,\"group\":\"2019 年\"},{\"category\":\"亚洲\",\"value\":550,\"group\":\"2023 年\"},{\"category\":\"欧洲\",\"value\":380,\"group\":\"2019 年\"},{\"category\":\"欧洲\",\"value\":520,\"group\":\"2023 年\"},{\"category\":\"美洲\",\"value\":350,\"group\":\"2019 年\"},{\"category\":\"美洲\",\"value\":480,\"group\":\"2023 年\"}],\"stack\":true,\"title\":\"2019 年与 2023 年各大洲旅游收入对比\",\"axisXTitle\":\"大洲\",\"axisYTitle\":\"收入 (亿美元)\"}", + "reference": [] + }, + { + "type": "text2chart", + "question": "各大洲不同年份的农业生产总值对比,2018 年亚洲为 2560 亿美元,欧洲为 1980 亿美元,非洲为 1370 亿美元,美洲为 2290 亿美元,澳洲为 850 亿美元;2022 年亚洲为 2890 亿美元,欧洲为 2050 亿美元,非洲为 1580 亿美元,美洲为 2450 亿美元,澳洲为 910 亿美元。用条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年亚洲\",\"value\":2560},{\"category\":\"2018 年欧洲\",\"value\":1980},{\"category\":\"2018 年非洲\",\"value\":1370},{\"category\":\"2018 年美洲\",\"value\":2290},{\"category\":\"2018 年澳洲\",\"value\":850},{\"category\":\"2022 年亚洲\",\"value\":2890},{\"category\":\"2022 年欧洲\",\"value\":2050},{\"category\":\"2022 年非洲\",\"value\":1580},{\"category\":\"2022 年美洲\",\"value\":2450},{\"category\":\"2022 年澳洲\",\"value\":910}],\"title\":\"各大洲不同年份的农业生产总值对比\",\"axisXTitle\":\"年份与大洲\",\"axisYTitle\":\"农业生产总值(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"亚洲\",\"value\":2560,\"group\":\"2018\"},{\"category\":\"亚洲\",\"value\":2890,\"group\":\"2022\"},{\"category\":\"欧洲\",\"value\":1980,\"group\":\"2018\"},{\"category\":\"欧洲\",\"value\":2050,\"group\":\"2022\"},{\"category\":\"非洲\",\"value\":1370,\"group\":\"2018\"},{\"category\":\"非洲\",\"value\":1580,\"group\":\"2022\"},{\"category\":\"美洲\",\"value\":2290,\"group\":\"2018\"},{\"category\":\"美洲\",\"value\":2450,\"group\":\"2022\"},{\"category\":\"澳洲\",\"value\":850,\"group\":\"2018\"},{\"category\":\"澳洲\",\"value\":910,\"group\":\"2022\"}],\"group\":true,\"title\":\"各大洲农业生产总值对比\",\"axisXTitle\":\"大洲\",\"axisYTitle\":\"农业生产总值 (亿美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "不同学科的平均成绩对比,数学为 82.5 分,物理为 78.9 分,化学为 85.2 分,生物为 79.5 分,历史为 88.0 分。用简单条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"数学\",\"value\":82.5},{\"category\":\"物理\",\"value\":78.9},{\"category\":\"化学\",\"value\":85.2},{\"category\":\"生物\",\"value\":79.5},{\"category\":\"历史\",\"value\":88.0}],\"title\":\"各学科平均成绩对比\",\"axisXTitle\":\"学科\",\"axisYTitle\":\"平均成绩(分)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"数学\",\"value\":82.5},{\"category\":\"物理\",\"value\":78.9},{\"category\":\"化学\",\"value\":85.2},{\"category\":\"生物\",\"value\":79.5},{\"category\":\"历史\",\"value\":88}],\"title\":\"不同学科平均成绩\",\"axisXTitle\":\"学科\",\"axisYTitle\":\"平均成绩 (分)\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用条形图可视化我的数据 [{ \"region\": \"北美\", \"sales\": 5000 }, { \"region\": \"欧洲\", \"sales\": 7000 }, { \"region\": \"亚洲\", \"sales\": 8000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":5000},{\"category\":\"欧洲\",\"value\":7000},{\"category\":\"亚洲\",\"value\":8000}],\"axisXTitle\": \"region\",\"axisYTitle\": \"sales\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":5000},{\"category\":\"欧洲\",\"value\":7000},{\"category\":\"亚洲\",\"value\":8000}],\"axisXTitle\":\"region\",\"axisYTitle\":\"sales\"}", + "reference": ["条形图 - Bar Chart 不适用场景"] + }, + { + "type": "data2chart", + "question": "使用条形图可视化 [{ \"department\": \"研发\", \"budget\": 30000 }, { \"department\": \"市场\", \"budget\": 15000 }, { \"department\": \"销售\", \"budget\": 20000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发\",\"value\":30000},{\"category\":\"市场\",\"value\":15000},{\"category\":\"销售\",\"value\":20000}],\"axisXTitle\":\"department\",\"axisYTitle\":\"budget\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发\",\"value\":30000},{\"category\":\"市场\",\"value\":15000},{\"category\":\"销售\",\"value\":20000}],\"axisXTitle\":\"department\",\"axisYTitle\":\"budget\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "使用条形图来表示 [{ \"product\": \"手机\", \"revenue\": 32000 }, { \"product\": \"电脑\", \"revenue\": 45000 }, { \"product\": \"平板\", \"revenue\": 15000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"手机\",\"value\":32000},{\"category\":\"电脑\",\"value\":45000},{\"category\":\"平板\",\"value\":15000}],\"axisXTitle\":\"产品\",\"axisYTitle\":\"收入\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"手机\",\"value\":32000},{\"category\":\"电脑\",\"value\":45000},{\"category\":\"平板\",\"value\":15000}],\"axisXTitle\":\"product\",\"axisYTitle\":\"revenue\"}", + "reference": ["条形图 - Bar Chart 适用场景"] + }, + { + "type": "data2chart", + "question": "用分组条形图可视化我不同产品的季度销售额,数据如下:{ '产品A': { 'Q1': 5000, 'Q2': 7000, 'Q3': 8000, 'Q4': 6000 }, '产品B': { 'Q1': 3000, 'Q2': 4000, 'Q3': 5000, 'Q4': 4500 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":5000,\"group\":\"产品A\"},{\"category\":\"Q2\",\"value\":7000,\"group\":\"产品A\"},{\"category\":\"Q3\",\"value\":8000,\"group\":\"产品A\"},{\"category\":\"Q4\",\"value\":6000,\"group\":\"产品A\"},{\"category\":\"Q1\",\"value\":3000,\"group\":\"产品B\"},{\"category\":\"Q2\",\"value\":4000,\"group\":\"产品B\"},{\"category\":\"Q3\",\"value\":5000,\"group\":\"产品B\"},{\"category\":\"Q4\",\"value\":4500,\"group\":\"产品B\"}],\"group\":true,\"title\":\"不同产品的季度销售额\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":5000,\"group\":\"产品A\"},{\"category\":\"Q2\",\"value\":7000,\"group\":\"产品A\"},{\"category\":\"Q3\",\"value\":8000,\"group\":\"产品A\"},{\"category\":\"Q4\",\"value\":6000,\"group\":\"产品A\"},{\"category\":\"Q1\",\"value\":3000,\"group\":\"产品B\"},{\"category\":\"Q2\",\"value\":4000,\"group\":\"产品B\"},{\"category\":\"Q3\",\"value\":5000,\"group\":\"产品B\"},{\"category\":\"Q4\",\"value\":4500,\"group\":\"产品B\"}],\"group\":true,\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用分组条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":200,\"group\":\"电力\"},{\"category\":\"北美\",\"value\":150,\"group\":\"天然气\"},{\"category\":\"欧洲\",\"value\":180,\"group\":\"电力\"},{\"category\":\"欧洲\",\"value\":170,\"group\":\"天然气\"},{\"category\":\"亚洲\",\"value\":250,\"group\":\"电力\"},{\"category\":\"亚洲\",\"value\":130,\"group\":\"天然气\"}],\"group\":true,\"title\":\"不同地区能源消耗对比\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"消耗量\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"电力\",\"value\":200,\"group\":\"北美\"},{\"category\":\"天然气\",\"value\":150,\"group\":\"北美\"},{\"category\":\"电力\",\"value\":180,\"group\":\"欧洲\"},{\"category\":\"天然气\",\"value\":170,\"group\":\"欧洲\"},{\"category\":\"电力\",\"value\":250,\"group\":\"亚洲\"},{\"category\":\"天然气\",\"value\":130,\"group\":\"亚洲\"}],\"group\":true,\"axisXTitle\":\"能源类型\",\"axisYTitle\":\"消耗 (单位)\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用分组条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"年级1\",\"value\":150,\"group\":\"男生\"},{\"category\":\"年级1\",\"value\":130,\"group\":\"女生\"},{\"category\":\"年级2\",\"value\":160,\"group\":\"男生\"},{\"category\":\"年级2\",\"value\":140,\"group\":\"女生\"},{\"category\":\"年级3\",\"value\":170,\"group\":\"男生\"},{\"category\":\"年级3\",\"value\":150,\"group\":\"女生\"}],\"group\":true,\"title\":\"不同年级学生的人数\",\"axisXTitle\":\"年级\",\"axisYTitle\":\"人数\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"男生\",\"value\":150,\"group\":\"年级1\"},{\"category\":\"女生\",\"value\":130,\"group\":\"年级1\"},{\"category\":\"男生\",\"value\":160,\"group\":\"年级2\"},{\"category\":\"女生\",\"value\":140,\"group\":\"年级2\"},{\"category\":\"男生\",\"value\":170,\"group\":\"年级3\"},{\"category\":\"女生\",\"value\":150,\"group\":\"年级3\"}],\"group\":true,\"axisXTitle\":\"性别\",\"axisYTitle\":\"人数\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用堆叠条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"年级1\",\"value\":150,\"group\":\"男生\"},{\"category\":\"年级1\",\"value\":130,\"group\":\"女生\"},{\"category\":\"年级2\",\"value\":160,\"group\":\"男生\"},{\"category\":\"年级2\",\"value\":140,\"group\":\"女生\"},{\"category\":\"年级3\",\"value\":170,\"group\":\"男生\"},{\"category\":\"年级3\",\"value\":150,\"group\":\"女生\"}],\"stack\":true,\"title\":\"不同年级学生的人数\",\"axisXTitle\":\"年级\",\"axisYTitle\":\"人数\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"男生\",\"value\":150,\"group\":\"年级1\"},{\"category\":\"女生\",\"value\":130,\"group\":\"年级1\"},{\"category\":\"男生\",\"value\":160,\"group\":\"年级2\"},{\"category\":\"女生\",\"value\":140,\"group\":\"年级2\"},{\"category\":\"男生\",\"value\":170,\"group\":\"年级3\"},{\"category\":\"女生\",\"value\":150,\"group\":\"年级3\"}],\"stack\":true,\"axisXTitle\":\"性别\",\"axisYTitle\":\"人数\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用堆叠条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":200,\"group\":\"电力\"},{\"category\":\"北美\",\"value\":150,\"group\":\"天然气\"},{\"category\":\"欧洲\",\"value\":180,\"group\":\"电力\"},{\"category\":\"欧洲\",\"value\":170,\"group\":\"天然气\"},{\"category\":\"亚洲\",\"value\":250,\"group\":\"电力\"},{\"category\":\"亚洲\",\"value\":130,\"group\":\"天然气\"}],\"stack\":true,\"title\":\"不同地区能源消耗\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"消耗量\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"电力\",\"value\":200,\"group\":\"北美\"},{\"category\":\"天然气\",\"value\":150,\"group\":\"北美\"},{\"category\":\"电力\",\"value\":180,\"group\":\"欧洲\"},{\"category\":\"天然气\",\"value\":170,\"group\":\"欧洲\"},{\"category\":\"电力\",\"value\":250,\"group\":\"亚洲\"},{\"category\":\"天然气\",\"value\":130,\"group\":\"亚洲\"}],\"stack\":true,\"axisXTitle\":\"能源类型\",\"axisYTitle\":\"消耗 (单位)\"}", + "reference": ["条形图 - Bar Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "使用堆叠条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"stack\":true,\"title\":\"公司不同部门每月开支\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支(元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"stack\":true,\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支\"}", + "reference": ["条形图 - Bar Chart 适用场景"] + }, + { + "type": "data2chart", + "question": "使用条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"group\":true,\"title\":\"各部门每月开支\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支(元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"group\":true,\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支\"}", + "reference": ["条形图 - Bar Chart 适用场景"] + }, + { + "type": "data2chart", + "question": "用条形图展示不同地区两个季度的市场份额,数据如下:{ 'North': { 'Q1': 40, 'Q2': 45 }, 'South': { 'Q1': 30, 'Q2': 35 }, 'East': { 'Q1': 20, 'Q2': 25 }, 'West': { 'Q1': 10, 'Q2': 15 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"North\",\"value\":40,\"group\":\"Q1\"},{\"category\":\"North\",\"value\":45,\"group\":\"Q2\"},{\"category\":\"South\",\"value\":30,\"group\":\"Q1\"},{\"category\":\"South\",\"value\":35,\"group\":\"Q2\"},{\"category\":\"East\",\"value\":20,\"group\":\"Q1\"},{\"category\":\"East\",\"value\":25,\"group\":\"Q2\"},{\"category\":\"West\",\"value\":10,\"group\":\"Q1\"},{\"category\":\"West\",\"value\":15,\"group\":\"Q2\"}],\"group\":true,\"title\":\"不同地区季度市场份额\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"市场份额\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":40,\"group\":\"North\"},{\"category\":\"Q2\",\"value\":45,\"group\":\"North\"},{\"category\":\"Q1\",\"value\":30,\"group\":\"South\"},{\"category\":\"Q2\",\"value\":35,\"group\":\"South\"},{\"category\":\"Q1\",\"value\":20,\"group\":\"East\"},{\"category\":\"Q2\",\"value\":25,\"group\":\"East\"},{\"category\":\"Q1\",\"value\":10,\"group\":\"West\"},{\"category\":\"Q2\",\"value\":15,\"group\":\"West\"}],\"group\":true,\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额\"}", + "reference": ["条形图 - Bar Chart 使用示例"] + } +] diff --git a/evaluations/datastes/chart/bar/metrics.json b/evaluations/datastes/chart/bar/metrics.json new file mode 100644 index 0000000..0bd5a8f --- /dev/null +++ b/evaluations/datastes/chart/bar/metrics.json @@ -0,0 +1,162 @@ +[ + { + "type": "text2chart", + "question": "某品牌手机销量的年度变化,2018 年销量为 500 万台,2019 年销量为 750 万台,2020 年销量为 900 万台。用条形图可视化。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年\",\"value\":500},{\"category\":\"2019 年\",\"value\":750},{\"category\":\"2020 年\",\"value\":900}],\"title\":\"某品牌手机销量年度变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销量(万台)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年\",\"value\":500},{\"category\":\"2019 年\",\"value\":750},{\"category\":\"2020 年\",\"value\":900}],\"title\":\"某品牌手机年度销量\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"销量 (万台)\"}", + "reference": ["条形图 - Bar Chart 不适用场景"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "2021 年公司不同部门的预算分配,研发部 50 百万美元,市场部 40 百万美元,销售部 60 百万美元,行政部 20 百万美元。用条形图可视化。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发部\",\"value\":50},{\"category\":\"市场部\",\"value\":40},{\"category\":\"销售部\",\"value\":60},{\"category\":\"行政部\",\"value\":20}],\"title\":\"2021年公司部门预算分配\",\"axisXTitle\":\"部门\",\"axisYTitle\":\"预算(百万元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发部\",\"value\":50},{\"category\":\"市场部\",\"value\":40},{\"category\":\"销售部\",\"value\":60},{\"category\":\"行政部\",\"value\":20}],\"title\":\"2021 年部门预算分配\",\"axisXTitle\":\"部门\",\"axisYTitle\":\"预算 (百万美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某超市不同水果的月销售量,苹果 2000 千克,香蕉 1500 千克,橙子 1800 千克,葡萄 1200 千克。用条形图显示。", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"苹果\",\"value\":2000},{\"category\":\"香蕉\",\"value\":1500},{\"category\":\"橙子\",\"value\":1800},{\"category\":\"葡萄\",\"value\":1200}],\"title\":\"超市水果月销售量\",\"axisXTitle\":\"水果类型\",\"axisYTitle\":\"销售量(千克)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"苹果\",\"value\":2000},{\"category\":\"香蕉\",\"value\":1500},{\"category\":\"橙子\",\"value\":1800},{\"category\":\"葡萄\",\"value\":1200}],\"title\":\"不同水果月销售量\",\"axisXTitle\":\"水果\",\"axisYTitle\":\"销售量 (千克)\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "2022 年四个季度公司 A 和公司 B 的销售额对比,公司 A 分别为 200 万元,250 万元,300 万元 和 350 万元,公司 B 分别为 180 万元,230 万元,280 万元 和 330 万元。用分组条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2022 Q1\",\"value\":200,\"group\":\"公司 A\"},{\"category\":\"2022 Q1\",\"value\":180,\"group\":\"公司 B\"},{\"category\":\"2022 Q2\",\"value\":250,\"group\":\"公司 A\"},{\"category\":\"2022 Q2\",\"value\":230,\"group\":\"公司 B\"},{\"category\":\"2022 Q3\",\"value\":300,\"group\":\"公司 A\"},{\"category\":\"2022 Q3\",\"value\":280,\"group\":\"公司 B\"},{\"category\":\"2022 Q4\",\"value\":350,\"group\":\"公司 A\"},{\"category\":\"2022 Q4\",\"value\":330,\"group\":\"公司 B\"}],\"group\":true,\"title\":\"2022 年四个季度公司 A 和公司 B 销售额对比\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额(万元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":200,\"group\":\"公司 A\"},{\"category\":\"Q1\",\"value\":180,\"group\":\"公司 B\"},{\"category\":\"Q2\",\"value\":250,\"group\":\"公司 A\"},{\"category\":\"Q2\",\"value\":230,\"group\":\"公司 B\"},{\"category\":\"Q3\",\"value\":300,\"group\":\"公司 A\"},{\"category\":\"Q3\",\"value\":280,\"group\":\"公司 B\"},{\"category\":\"Q4\",\"value\":350,\"group\":\"公司 A\"},{\"category\":\"Q4\",\"value\":330,\"group\":\"公司 B\"}],\"group\":true,\"title\":\"2022 年公司 A 和公司 B 的季度销售额对比\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额 (万元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "城市公共交通使用量变化情况,2021 年的地铁和公交车使用量对比,地铁分别为 120 万人次,公交车分别为 80 万人次;2022 年地铁分别为 130 万人次,公交车分别为 85 万人次。用分组条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2021 年\",\"value\":120,\"group\":\"地铁\"},{\"category\":\"2021 年\",\"value\":80,\"group\":\"公交车\"},{\"category\":\"2022 年\",\"value\":130,\"group\":\"地铁\"},{\"category\":\"2022 年\",\"value\":85,\"group\":\"公交车\"}],\"group\":true,\"title\":\"城市公共交通使用量变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"使用量(万人次)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"2021 年\",\"value\":120,\"group\":\"地铁\"},{\"category\":\"2021 年\",\"value\":80,\"group\":\"公交车\"},{\"category\":\"2022 年\",\"value\":130,\"group\":\"地铁\"},{\"category\":\"2022 年\",\"value\":85,\"group\":\"公交车\"}],\"group\":true,\"title\":\"城市公共交通使用量变化\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"使用量 (万人次)\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "五大科技公司 2023 年的季度营收增长情况,Apple 分别为 500 亿美元,520 亿美元,550 亿美元 和 600 亿美元,Google 分别为 450 亿美元,480 亿美元,500 亿美元 和 530 亿美元。用堆叠条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":500,\"group\":\"Apple\"},{\"category\":\"Q2\",\"value\":520,\"group\":\"Apple\"},{\"category\":\"Q3\",\"value\":550,\"group\":\"Apple\"},{\"category\":\"Q4\",\"value\":600,\"group\":\"Apple\"},{\"category\":\"Q1\",\"value\":450,\"group\":\"Google\"},{\"category\":\"Q2\",\"value\":480,\"group\":\"Google\"},{\"category\":\"Q3\",\"value\":500,\"group\":\"Google\"},{\"category\":\"Q4\",\"value\":530,\"group\":\"Google\"}],\"stack\":true,\"title\":\"五大科技公司 2023 年季度营收增长\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"营收(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":500,\"group\":\"Apple\"},{\"category\":\"Q1\",\"value\":450,\"group\":\"Google\"},{\"category\":\"Q2\",\"value\":520,\"group\":\"Apple\"},{\"category\":\"Q2\",\"value\":480,\"group\":\"Google\"},{\"category\":\"Q3\",\"value\":550,\"group\":\"Apple\"},{\"category\":\"Q3\",\"value\":500,\"group\":\"Google\"},{\"category\":\"Q4\",\"value\":600,\"group\":\"Apple\"},{\"category\":\"Q4\",\"value\":530,\"group\":\"Google\"}],\"stack\":true,\"title\":\"2023 年五大科技公司季度营收增长\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"营收 (亿美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "2019 年与 2023 年各大洲旅游收入对比,亚洲分别是 400 亿美元 与 550 亿美元,欧洲分别是 380 亿美元 与 520 亿美元,美洲分别是 350 亿美元 与 480 亿美元。用堆叠条形图可视化", + "response": "{\"type\":\"bar-stacked\",\"data\":[{\"year\":\"2019\",\"Asia\":400,\"Europe\":380,\"America\":350},{\"year\":\"2023\",\"Asia\":550,\"Europe\":520,\"America\":480}],\"title\":\"各大洲旅游收入对比\",\"axisXTitle\":\"年份\",\"axisYTitle\":\"旅游收入(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"亚洲\",\"value\":400,\"group\":\"2019 年\"},{\"category\":\"亚洲\",\"value\":550,\"group\":\"2023 年\"},{\"category\":\"欧洲\",\"value\":380,\"group\":\"2019 年\"},{\"category\":\"欧洲\",\"value\":520,\"group\":\"2023 年\"},{\"category\":\"美洲\",\"value\":350,\"group\":\"2019 年\"},{\"category\":\"美洲\",\"value\":480,\"group\":\"2023 年\"}],\"stack\":true,\"title\":\"2019 年与 2023 年各大洲旅游收入对比\",\"axisXTitle\":\"大洲\",\"axisYTitle\":\"收入 (亿美元)\"}", + "reference": [], + "correctness": 0 + }, + { + "type": "text2chart", + "question": "各大洲不同年份的农业生产总值对比,2018 年亚洲为 2560 亿美元,欧洲为 1980 亿美元,非洲为 1370 亿美元,美洲为 2290 亿美元,澳洲为 850 亿美元;2022 年亚洲为 2890 亿美元,欧洲为 2050 亿美元,非洲为 1580 亿美元,美洲为 2450 亿美元,澳洲为 910 亿美元。用条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"2018 年亚洲\",\"value\":2560},{\"category\":\"2018 年欧洲\",\"value\":1980},{\"category\":\"2018 年非洲\",\"value\":1370},{\"category\":\"2018 年美洲\",\"value\":2290},{\"category\":\"2018 年澳洲\",\"value\":850},{\"category\":\"2022 年亚洲\",\"value\":2890},{\"category\":\"2022 年欧洲\",\"value\":2050},{\"category\":\"2022 年非洲\",\"value\":1580},{\"category\":\"2022 年美洲\",\"value\":2450},{\"category\":\"2022 年澳洲\",\"value\":910}],\"title\":\"各大洲不同年份的农业生产总值对比\",\"axisXTitle\":\"年份与大洲\",\"axisYTitle\":\"农业生产总值(亿美元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"亚洲\",\"value\":2560,\"group\":\"2018\"},{\"category\":\"亚洲\",\"value\":2890,\"group\":\"2022\"},{\"category\":\"欧洲\",\"value\":1980,\"group\":\"2018\"},{\"category\":\"欧洲\",\"value\":2050,\"group\":\"2022\"},{\"category\":\"非洲\",\"value\":1370,\"group\":\"2018\"},{\"category\":\"非洲\",\"value\":1580,\"group\":\"2022\"},{\"category\":\"美洲\",\"value\":2290,\"group\":\"2018\"},{\"category\":\"美洲\",\"value\":2450,\"group\":\"2022\"},{\"category\":\"澳洲\",\"value\":850,\"group\":\"2018\"},{\"category\":\"澳洲\",\"value\":910,\"group\":\"2022\"}],\"group\":true,\"title\":\"各大洲农业生产总值对比\",\"axisXTitle\":\"大洲\",\"axisYTitle\":\"农业生产总值 (亿美元)\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 0 + }, + { + "type": "text2chart", + "question": "不同学科的平均成绩对比,数学为 82.5 分,物理为 78.9 分,化学为 85.2 分,生物为 79.5 分,历史为 88.0 分。用简单条形图可视化", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"数学\",\"value\":82.5},{\"category\":\"物理\",\"value\":78.9},{\"category\":\"化学\",\"value\":85.2},{\"category\":\"生物\",\"value\":79.5},{\"category\":\"历史\",\"value\":88.0}],\"title\":\"各学科平均成绩对比\",\"axisXTitle\":\"学科\",\"axisYTitle\":\"平均成绩(分)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"数学\",\"value\":82.5},{\"category\":\"物理\",\"value\":78.9},{\"category\":\"化学\",\"value\":85.2},{\"category\":\"生物\",\"value\":79.5},{\"category\":\"历史\",\"value\":88}],\"title\":\"不同学科平均成绩\",\"axisXTitle\":\"学科\",\"axisYTitle\":\"平均成绩 (分)\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用条形图可视化我的数据 [{ \"region\": \"北美\", \"sales\": 5000 }, { \"region\": \"欧洲\", \"sales\": 7000 }, { \"region\": \"亚洲\", \"sales\": 8000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":5000},{\"category\":\"欧洲\",\"value\":7000},{\"category\":\"亚洲\",\"value\":8000}],\"axisXTitle\": \"region\",\"axisYTitle\": \"sales\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":5000},{\"category\":\"欧洲\",\"value\":7000},{\"category\":\"亚洲\",\"value\":8000}],\"axisXTitle\":\"region\",\"axisYTitle\":\"sales\"}", + "reference": ["条形图 - Bar Chart 不适用场景"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用条形图可视化 [{ \"department\": \"研发\", \"budget\": 30000 }, { \"department\": \"市场\", \"budget\": 15000 }, { \"department\": \"销售\", \"budget\": 20000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发\",\"value\":30000},{\"category\":\"市场\",\"value\":15000},{\"category\":\"销售\",\"value\":20000}],\"axisXTitle\":\"department\",\"axisYTitle\":\"budget\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"研发\",\"value\":30000},{\"category\":\"市场\",\"value\":15000},{\"category\":\"销售\",\"value\":20000}],\"axisXTitle\":\"department\",\"axisYTitle\":\"budget\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用条形图来表示 [{ \"product\": \"手机\", \"revenue\": 32000 }, { \"product\": \"电脑\", \"revenue\": 45000 }, { \"product\": \"平板\", \"revenue\": 15000 }]", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"手机\",\"value\":32000},{\"category\":\"电脑\",\"value\":45000},{\"category\":\"平板\",\"value\":15000}],\"axisXTitle\":\"产品\",\"axisYTitle\":\"收入\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"手机\",\"value\":32000},{\"category\":\"电脑\",\"value\":45000},{\"category\":\"平板\",\"value\":15000}],\"axisXTitle\":\"product\",\"axisYTitle\":\"revenue\"}", + "reference": ["条形图 - Bar Chart 适用场景"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用分组条形图可视化我不同产品的季度销售额,数据如下:{ '产品A': { 'Q1': 5000, 'Q2': 7000, 'Q3': 8000, 'Q4': 6000 }, '产品B': { 'Q1': 3000, 'Q2': 4000, 'Q3': 5000, 'Q4': 4500 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":5000,\"group\":\"产品A\"},{\"category\":\"Q2\",\"value\":7000,\"group\":\"产品A\"},{\"category\":\"Q3\",\"value\":8000,\"group\":\"产品A\"},{\"category\":\"Q4\",\"value\":6000,\"group\":\"产品A\"},{\"category\":\"Q1\",\"value\":3000,\"group\":\"产品B\"},{\"category\":\"Q2\",\"value\":4000,\"group\":\"产品B\"},{\"category\":\"Q3\",\"value\":5000,\"group\":\"产品B\"},{\"category\":\"Q4\",\"value\":4500,\"group\":\"产品B\"}],\"group\":true,\"title\":\"不同产品的季度销售额\",\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":5000,\"group\":\"产品A\"},{\"category\":\"Q2\",\"value\":7000,\"group\":\"产品A\"},{\"category\":\"Q3\",\"value\":8000,\"group\":\"产品A\"},{\"category\":\"Q4\",\"value\":6000,\"group\":\"产品A\"},{\"category\":\"Q1\",\"value\":3000,\"group\":\"产品B\"},{\"category\":\"Q2\",\"value\":4000,\"group\":\"产品B\"},{\"category\":\"Q3\",\"value\":5000,\"group\":\"产品B\"},{\"category\":\"Q4\",\"value\":4500,\"group\":\"产品B\"}],\"group\":true,\"axisXTitle\":\"季度\",\"axisYTitle\":\"销售额\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用分组条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":200,\"group\":\"电力\"},{\"category\":\"北美\",\"value\":150,\"group\":\"天然气\"},{\"category\":\"欧洲\",\"value\":180,\"group\":\"电力\"},{\"category\":\"欧洲\",\"value\":170,\"group\":\"天然气\"},{\"category\":\"亚洲\",\"value\":250,\"group\":\"电力\"},{\"category\":\"亚洲\",\"value\":130,\"group\":\"天然气\"}],\"group\":true,\"title\":\"不同地区能源消耗对比\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"消耗量\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"电力\",\"value\":200,\"group\":\"北美\"},{\"category\":\"天然气\",\"value\":150,\"group\":\"北美\"},{\"category\":\"电力\",\"value\":180,\"group\":\"欧洲\"},{\"category\":\"天然气\",\"value\":170,\"group\":\"欧洲\"},{\"category\":\"电力\",\"value\":250,\"group\":\"亚洲\"},{\"category\":\"天然气\",\"value\":130,\"group\":\"亚洲\"}],\"group\":true,\"axisXTitle\":\"能源类型\",\"axisYTitle\":\"消耗 (单位)\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用分组条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"年级1\",\"value\":150,\"group\":\"男生\"},{\"category\":\"年级1\",\"value\":130,\"group\":\"女生\"},{\"category\":\"年级2\",\"value\":160,\"group\":\"男生\"},{\"category\":\"年级2\",\"value\":140,\"group\":\"女生\"},{\"category\":\"年级3\",\"value\":170,\"group\":\"男生\"},{\"category\":\"年级3\",\"value\":150,\"group\":\"女生\"}],\"group\":true,\"title\":\"不同年级学生的人数\",\"axisXTitle\":\"年级\",\"axisYTitle\":\"人数\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"男生\",\"value\":150,\"group\":\"年级1\"},{\"category\":\"女生\",\"value\":130,\"group\":\"年级1\"},{\"category\":\"男生\",\"value\":160,\"group\":\"年级2\"},{\"category\":\"女生\",\"value\":140,\"group\":\"年级2\"},{\"category\":\"男生\",\"value\":170,\"group\":\"年级3\"},{\"category\":\"女生\",\"value\":150,\"group\":\"年级3\"}],\"group\":true,\"axisXTitle\":\"性别\",\"axisYTitle\":\"人数\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用堆叠条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"年级1\",\"value\":150,\"group\":\"男生\"},{\"category\":\"年级1\",\"value\":130,\"group\":\"女生\"},{\"category\":\"年级2\",\"value\":160,\"group\":\"男生\"},{\"category\":\"年级2\",\"value\":140,\"group\":\"女生\"},{\"category\":\"年级3\",\"value\":170,\"group\":\"男生\"},{\"category\":\"年级3\",\"value\":150,\"group\":\"女生\"}],\"stack\":true,\"title\":\"不同年级学生的人数\",\"axisXTitle\":\"年级\",\"axisYTitle\":\"人数\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"男生\",\"value\":150,\"group\":\"年级1\"},{\"category\":\"女生\",\"value\":130,\"group\":\"年级1\"},{\"category\":\"男生\",\"value\":160,\"group\":\"年级2\"},{\"category\":\"女生\",\"value\":140,\"group\":\"年级2\"},{\"category\":\"男生\",\"value\":170,\"group\":\"年级3\"},{\"category\":\"女生\",\"value\":150,\"group\":\"年级3\"}],\"stack\":true,\"axisXTitle\":\"性别\",\"axisYTitle\":\"人数\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用堆叠条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"北美\",\"value\":200,\"group\":\"电力\"},{\"category\":\"北美\",\"value\":150,\"group\":\"天然气\"},{\"category\":\"欧洲\",\"value\":180,\"group\":\"电力\"},{\"category\":\"欧洲\",\"value\":170,\"group\":\"天然气\"},{\"category\":\"亚洲\",\"value\":250,\"group\":\"电力\"},{\"category\":\"亚洲\",\"value\":130,\"group\":\"天然气\"}],\"stack\":true,\"title\":\"不同地区能源消耗\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"消耗量\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"电力\",\"value\":200,\"group\":\"北美\"},{\"category\":\"天然气\",\"value\":150,\"group\":\"北美\"},{\"category\":\"电力\",\"value\":180,\"group\":\"欧洲\"},{\"category\":\"天然气\",\"value\":170,\"group\":\"欧洲\"},{\"category\":\"电力\",\"value\":250,\"group\":\"亚洲\"},{\"category\":\"天然气\",\"value\":130,\"group\":\"亚洲\"}],\"stack\":true,\"axisXTitle\":\"能源类型\",\"axisYTitle\":\"消耗 (单位)\"}", + "reference": ["条形图 - Bar Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用堆叠条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"stack\":true,\"title\":\"公司不同部门每月开支\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支(元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"stack\":true,\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支\"}", + "reference": ["条形图 - Bar Chart 适用场景"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "使用条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"group\":true,\"title\":\"各部门每月开支\",\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支(元)\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"January\",\"value\":3000,\"group\":\"Marketing\"},{\"category\":\"February\",\"value\":4000,\"group\":\"Marketing\"},{\"category\":\"March\",\"value\":3500,\"group\":\"Marketing\"},{\"category\":\"January\",\"value\":2000,\"group\":\"Sales\"},{\"category\":\"February\",\"value\":3000,\"group\":\"Sales\"},{\"category\":\"March\",\"value\":2800,\"group\":\"Sales\"},{\"category\":\"January\",\"value\":4000,\"group\":\"R&D\"},{\"category\":\"February\",\"value\":4500,\"group\":\"R&D\"},{\"category\":\"March\",\"value\":4200,\"group\":\"R&D\"}],\"group\":true,\"axisXTitle\":\"月份\",\"axisYTitle\":\"开支\"}", + "reference": ["条形图 - Bar Chart 适用场景"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用条形图展示不同地区两个季度的市场份额,数据如下:{ 'North': { 'Q1': 40, 'Q2': 45 }, 'South': { 'Q1': 30, 'Q2': 35 }, 'East': { 'Q1': 20, 'Q2': 25 }, 'West': { 'Q1': 10, 'Q2': 15 } }", + "response": "{\"type\":\"bar\",\"data\":[{\"category\":\"North\",\"value\":40,\"group\":\"Q1\"},{\"category\":\"North\",\"value\":45,\"group\":\"Q2\"},{\"category\":\"South\",\"value\":30,\"group\":\"Q1\"},{\"category\":\"South\",\"value\":35,\"group\":\"Q2\"},{\"category\":\"East\",\"value\":20,\"group\":\"Q1\"},{\"category\":\"East\",\"value\":25,\"group\":\"Q2\"},{\"category\":\"West\",\"value\":10,\"group\":\"Q1\"},{\"category\":\"West\",\"value\":15,\"group\":\"Q2\"}],\"group\":true,\"title\":\"不同地区季度市场份额\",\"axisXTitle\":\"地区\",\"axisYTitle\":\"市场份额\"}", + "answer": "{\"type\":\"bar\",\"data\":[{\"category\":\"Q1\",\"value\":40,\"group\":\"North\"},{\"category\":\"Q2\",\"value\":45,\"group\":\"North\"},{\"category\":\"Q1\",\"value\":30,\"group\":\"South\"},{\"category\":\"Q2\",\"value\":35,\"group\":\"South\"},{\"category\":\"Q1\",\"value\":20,\"group\":\"East\"},{\"category\":\"Q2\",\"value\":25,\"group\":\"East\"},{\"category\":\"Q1\",\"value\":10,\"group\":\"West\"},{\"category\":\"Q2\",\"value\":15,\"group\":\"West\"}],\"group\":true,\"axisXTitle\":\"季度\",\"axisYTitle\":\"市场份额\"}", + "reference": ["条形图 - Bar Chart 使用示例"], + "correctness": 1 + } +] diff --git a/evaluations/datastes/chart/bar/test.json b/evaluations/datastes/chart/bar/test.json new file mode 100644 index 0000000..4b7aa17 --- /dev/null +++ b/evaluations/datastes/chart/bar/test.json @@ -0,0 +1,367 @@ +[ + { + "type": "text2chart", + "question": "某品牌手机销量的年度变化,2018 年销量为 500 万台,2019 年销量为 750 万台,2020 年销量为 900 万台。用条形图可视化。", + "answer": { + "type": "bar", + "data": [ + { "category": "2018 年", "value": 500 }, + { "category": "2019 年", "value": 750 }, + { "category": "2020 年", "value": 900 } + ], + "title": "某品牌手机年度销量", + "axisXTitle": "年份", + "axisYTitle": "销量 (万台)" + } + }, + { + "type": "text2chart", + "question": "2021 年公司不同部门的预算分配,研发部 50 百万美元,市场部 40 百万美元,销售部 60 百万美元,行政部 20 百万美元。用条形图可视化。", + "answer": { + "type": "bar", + "data": [ + { "category": "研发部", "value": 50 }, + { "category": "市场部", "value": 40 }, + { "category": "销售部", "value": 60 }, + { "category": "行政部", "value": 20 } + ], + "title": "2021 年部门预算分配", + "axisXTitle": "部门", + "axisYTitle": "预算 (百万美元)" + } + }, + { + "type": "text2chart", + "question": "某超市不同水果的月销售量,苹果 2000 千克,香蕉 1500 千克,橙子 1800 千克,葡萄 1200 千克。用条形图显示。", + "answer": { + "type": "bar", + "data": [ + { "category": "苹果", "value": 2000 }, + { "category": "香蕉", "value": 1500 }, + { "category": "橙子", "value": 1800 }, + { "category": "葡萄", "value": 1200 } + ], + "title": "不同水果月销售量", + "axisXTitle": "水果", + "axisYTitle": "销售量 (千克)" + } + }, + + { + "type": "text2chart", + "question": "2022 年四个季度公司 A 和公司 B 的销售额对比,公司 A 分别为 200 万元,250 万元,300 万元 和 350 万元,公司 B 分别为 180 万元,230 万元,280 万元 和 330 万元。用分组条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "Q1", "value": 200, "group": "公司 A" }, + { "category": "Q1", "value": 180, "group": "公司 B" }, + { "category": "Q2", "value": 250, "group": "公司 A" }, + { "category": "Q2", "value": 230, "group": "公司 B" }, + { "category": "Q3", "value": 300, "group": "公司 A" }, + { "category": "Q3", "value": 280, "group": "公司 B" }, + { "category": "Q4", "value": 350, "group": "公司 A" }, + { "category": "Q4", "value": 330, "group": "公司 B" } + ], + "group": true, + "title": "2022 年公司 A 和公司 B 的季度销售额对比", + "axisXTitle": "季度", + "axisYTitle": "销售额 (万元)" + } + }, + { + "type": "text2chart", + "question": "城市公共交通使用量变化情况,2021 年的地铁和公交车使用量对比,地铁分别为 120 万人次,公交车分别为 80 万人次;2022 年地铁分别为 130 万人次,公交车分别为 85 万人次。用分组条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "2021 年", "value": 120, "group": "地铁" }, + { "category": "2021 年", "value": 80, "group": "公交车" }, + { "category": "2022 年", "value": 130, "group": "地铁" }, + { "category": "2022 年", "value": 85, "group": "公交车" } + ], + "group": true, + "title": "城市公共交通使用量变化", + "axisXTitle": "年份", + "axisYTitle": "使用量 (万人次)" + } + }, + { + "type": "text2chart", + "question": "五大科技公司 2023 年的季度营收增长情况,Apple 分别为 500 亿美元,520 亿美元,550 亿美元 和 600 亿美元,Google 分别为 450 亿美元,480 亿美元,500 亿美元 和 530 亿美元。用堆叠条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "Q1", "value": 500, "group": "Apple" }, + { "category": "Q1", "value": 450, "group": "Google" }, + { "category": "Q2", "value": 520, "group": "Apple" }, + { "category": "Q2", "value": 480, "group": "Google" }, + { "category": "Q3", "value": 550, "group": "Apple" }, + { "category": "Q3", "value": 500, "group": "Google" }, + { "category": "Q4", "value": 600, "group": "Apple" }, + { "category": "Q4", "value": 530, "group": "Google" } + ], + "stack": true, + "title": "2023 年五大科技公司季度营收增长", + "axisXTitle": "季度", + "axisYTitle": "营收 (亿美元)" + } + }, + { + "type": "text2chart", + "question": "2019 年与 2023 年各大洲旅游收入对比,亚洲分别是 400 亿美元 与 550 亿美元,欧洲分别是 380 亿美元 与 520 亿美元,美洲分别是 350 亿美元 与 480 亿美元。用堆叠条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "亚洲", "value": 400, "group": "2019 年" }, + { "category": "亚洲", "value": 550, "group": "2023 年" }, + { "category": "欧洲", "value": 380, "group": "2019 年" }, + { "category": "欧洲", "value": 520, "group": "2023 年" }, + { "category": "美洲", "value": 350, "group": "2019 年" }, + { "category": "美洲", "value": 480, "group": "2023 年" } + ], + "stack": true, + "title": "2019 年与 2023 年各大洲旅游收入对比", + "axisXTitle": "大洲", + "axisYTitle": "收入 (亿美元)" + } + }, + + { + "type": "text2chart", + "question": "各大洲不同年份的农业生产总值对比,2018 年亚洲为 2560 亿美元,欧洲为 1980 亿美元,非洲为 1370 亿美元,美洲为 2290 亿美元,澳洲为 850 亿美元;2022 年亚洲为 2890 亿美元,欧洲为 2050 亿美元,非洲为 1580 亿美元,美洲为 2450 亿美元,澳洲为 910 亿美元。用条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "亚洲", "value": 2560, "group": "2018" }, + { "category": "亚洲", "value": 2890, "group": "2022" }, + { "category": "欧洲", "value": 1980, "group": "2018" }, + { "category": "欧洲", "value": 2050, "group": "2022" }, + { "category": "非洲", "value": 1370, "group": "2018" }, + { "category": "非洲", "value": 1580, "group": "2022" }, + { "category": "美洲", "value": 2290, "group": "2018" }, + { "category": "美洲", "value": 2450, "group": "2022" }, + { "category": "澳洲", "value": 850, "group": "2018" }, + { "category": "澳洲", "value": 910, "group": "2022" } + ], + "group": true, + "title": "各大洲农业生产总值对比", + "axisXTitle": "大洲", + "axisYTitle": "农业生产总值 (亿美元)" + } + }, + { + "type": "text2chart", + "question": "不同学科的平均成绩对比,数学为 82.5 分,物理为 78.9 分,化学为 85.2 分,生物为 79.5 分,历史为 88.0 分。用简单条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "数学", "value": 82.5 }, + { "category": "物理", "value": 78.9 }, + { "category": "化学", "value": 85.2 }, + { "category": "生物", "value": 79.5 }, + { "category": "历史", "value": 88.0 } + ], + "title": "不同学科平均成绩", + "axisXTitle": "学科", + "axisYTitle": "平均成绩 (分)" + } + }, + + { + "type": "data2chart", + "question": "用条形图可视化我的数据 [{ \"region\": \"北美\", \"sales\": 5000 }, { \"region\": \"欧洲\", \"sales\": 7000 }, { \"region\": \"亚洲\", \"sales\": 8000 }]", + "answer": { + "type": "bar", + "data": [ + { "category": "北美", "value": 5000 }, + { "category": "欧洲", "value": 7000 }, + { "category": "亚洲", "value": 8000 } + ], + "axisXTitle": "region", + "axisYTitle": "sales" + } + }, + { + "type": "data2chart", + "question": "使用条形图可视化 [{ \"department\": \"研发\", \"budget\": 30000 }, { \"department\": \"市场\", \"budget\": 15000 }, { \"department\": \"销售\", \"budget\": 20000 }]", + "answer": { + "type": "bar", + "data": [ + { "category": "研发", "value": 30000 }, + { "category": "市场", "value": 15000 }, + { "category": "销售", "value": 20000 } + ], + "axisXTitle": "department", + "axisYTitle": "budget" + } + }, + { + "type": "data2chart", + "question": "使用条形图来表示 [{ \"product\": \"手机\", \"revenue\": 32000 }, { \"product\": \"电脑\", \"revenue\": 45000 }, { \"product\": \"平板\", \"revenue\": 15000 }]", + "answer": { + "type": "bar", + "data": [ + { "category": "手机", "value": 32000 }, + { "category": "电脑", "value": 45000 }, + { "category": "平板", "value": 15000 } + ], + "axisXTitle": "product", + "axisYTitle": "revenue" + } + }, + + { + "type": "data2chart", + "question": "用分组条形图可视化我不同产品的季度销售额,数据如下:{ '产品A': { 'Q1': 5000, 'Q2': 7000, 'Q3': 8000, 'Q4': 6000 }, '产品B': { 'Q1': 3000, 'Q2': 4000, 'Q3': 5000, 'Q4': 4500 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "Q1", "value": 5000, "group": "产品A" }, + { "category": "Q2", "value": 7000, "group": "产品A" }, + { "category": "Q3", "value": 8000, "group": "产品A" }, + { "category": "Q4", "value": 6000, "group": "产品A" }, + { "category": "Q1", "value": 3000, "group": "产品B" }, + { "category": "Q2", "value": 4000, "group": "产品B" }, + { "category": "Q3", "value": 5000, "group": "产品B" }, + { "category": "Q4", "value": 4500, "group": "产品B" } + ], + "group": true, + "axisXTitle": "季度", + "axisYTitle": "销售额" + } + }, + { + "type": "data2chart", + "question": "用分组条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "电力", "value": 200, "group": "北美" }, + { "category": "天然气", "value": 150, "group": "北美" }, + { "category": "电力", "value": 180, "group": "欧洲" }, + { "category": "天然气", "value": 170, "group": "欧洲" }, + { "category": "电力", "value": 250, "group": "亚洲" }, + { "category": "天然气", "value": 130, "group": "亚洲" } + ], + "group": true, + "axisXTitle": "能源类型", + "axisYTitle": "消耗 (单位)" + } + }, + { + "type": "data2chart", + "question": "用分组条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "男生", "value": 150, "group": "年级1" }, + { "category": "女生", "value": 130, "group": "年级1" }, + { "category": "男生", "value": 160, "group": "年级2" }, + { "category": "女生", "value": 140, "group": "年级2" }, + { "category": "男生", "value": 170, "group": "年级3" }, + { "category": "女生", "value": 150, "group": "年级3" } + ], + "group": true, + "axisXTitle": "性别", + "axisYTitle": "人数" + } + }, + { + "type": "data2chart", + "question": "用堆叠条形图展示不同年级学生的人数,数据如下:{ '年级1': { '男生': 150, '女生': 130 }, '年级2': { '男生': 160, '女生': 140 }, '年级3': { '男生': 170, '女生': 150 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "男生", "value": 150, "group": "年级1" }, + { "category": "女生", "value": 130, "group": "年级1" }, + { "category": "男生", "value": 160, "group": "年级2" }, + { "category": "女生", "value": 140, "group": "年级2" }, + { "category": "男生", "value": 170, "group": "年级3" }, + { "category": "女生", "value": 150, "group": "年级3" } + ], + "stack": true, + "axisXTitle": "性别", + "axisYTitle": "人数" + } + }, + { + "type": "data2chart", + "question": "用堆叠条形图表示我公司在不同地区的能源消耗,数据如下:{ '北美': { '电力': 200, '天然气': 150 }, '欧洲': { '电力': 180, '天然气': 170 }, '亚洲': { '电力': 250, '天然气': 130 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "电力", "value": 200, "group": "北美" }, + { "category": "天然气", "value": 150, "group": "北美" }, + { "category": "电力", "value": 180, "group": "欧洲" }, + { "category": "天然气", "value": 170, "group": "欧洲" }, + { "category": "电力", "value": 250, "group": "亚洲" }, + { "category": "天然气", "value": 130, "group": "亚洲" } + ], + "stack": true, + "axisXTitle": "能源类型", + "axisYTitle": "消耗 (单位)" + } + }, + { + "type": "data2chart", + "question": "使用堆叠条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "January", "value": 3000, "group": "Marketing" }, + { "category": "February", "value": 4000, "group": "Marketing" }, + { "category": "March", "value": 3500, "group": "Marketing" }, + { "category": "January", "value": 2000, "group": "Sales" }, + { "category": "February", "value": 3000, "group": "Sales" }, + { "category": "March", "value": 2800, "group": "Sales" }, + { "category": "January", "value": 4000, "group": "R&D" }, + { "category": "February", "value": 4500, "group": "R&D" }, + { "category": "March", "value": 4200, "group": "R&D" } + ], + "stack": true, + "axisXTitle": "月份", + "axisYTitle": "开支" + } + }, + { + "type": "data2chart", + "question": "使用条形图来展示我公司不同部门每个月的开支情况,数据如下:{ 'Marketing': { 'January': 3000, 'February': 4000, 'March': 3500 }, 'Sales': { 'January': 2000, 'February': 3000, 'March': 2800 }, 'R&D': { 'January': 4000, 'February': 4500, 'March': 4200 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "January", "value": 3000, "group": "Marketing" }, + { "category": "February", "value": 4000, "group": "Marketing" }, + { "category": "March", "value": 3500, "group": "Marketing" }, + { "category": "January", "value": 2000, "group": "Sales" }, + { "category": "February", "value": 3000, "group": "Sales" }, + { "category": "March", "value": 2800, "group": "Sales" }, + { "category": "January", "value": 4000, "group": "R&D" }, + { "category": "February", "value": 4500, "group": "R&D" }, + { "category": "March", "value": 4200, "group": "R&D" } + ], + "group": true, + "axisXTitle": "月份", + "axisYTitle": "开支" + } + }, + { + "type": "data2chart", + "question": "用条形图展示不同地区两个季度的市场份额,数据如下:{ 'North': { 'Q1': 40, 'Q2': 45 }, 'South': { 'Q1': 30, 'Q2': 35 }, 'East': { 'Q1': 20, 'Q2': 25 }, 'West': { 'Q1': 10, 'Q2': 15 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "Q1", "value": 40, "group": "North" }, + { "category": "Q2", "value": 45, "group": "North" }, + { "category": "Q1", "value": 30, "group": "South" }, + { "category": "Q2", "value": 35, "group": "South" }, + { "category": "Q1", "value": 20, "group": "East" }, + { "category": "Q2", "value": 25, "group": "East" }, + { "category": "Q1", "value": 10, "group": "West" }, + { "category": "Q2", "value": 15, "group": "West" } + ], + "group": true, + "axisXTitle": "季度", + "axisYTitle": "市场份额" + } + } +] diff --git a/evaluations/datastes/chart/heat-map/eval.json b/evaluations/datastes/chart/heat-map/eval.json new file mode 100644 index 0000000..1c4a42d --- /dev/null +++ b/evaluations/datastes/chart/heat-map/eval.json @@ -0,0 +1,76 @@ +[ + { + "type": "text2chart", + "question": "用热力图在地图上显示北京、天津、青岛的空气质量指数。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":116.407396,\"latitude\":39.904989,\"value\":75},{\"longitude\":117.200313,\"latitude\":39.130561,\"value\":80},{\"longitude\":120.332029,\"latitude\":36.072087,\"value\":60}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":116.407395,\"latitude\":39.904211,\"value\":150},{\"longitude\":117.200983,\"latitude\":39.084158,\"value\":180},{\"longitude\":120.382639,\"latitude\":36.067082,\"value\":130}]}", + "reference": [ + "点标注地图 - PinMap 不适用场景", + "热力地图 - HeatMap 基础概念", + "面积图 - Area Chart 使用示例" + ] + }, + { + "type": "text2chart", + "question": "用热力图在地图上展示广州、深圳、佛山的夏季平均气温。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":113.264404,\"latitude\":23.129098,\"value\":28},{\"longitude\":114.057868,\"latitude\":22.543148,\"value\":29},{\"longitude\":113.118474,\"latitude\":23.028498,\"value\":27}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":113.264435,\"latitude\":23.129163,\"value\":35},{\"longitude\":114.057868,\"latitude\":22.543099,\"value\":34},{\"longitude\":113.122717,\"latitude\":23.028762,\"value\":36}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 基础概念"] + }, + { + "type": "text2chart", + "question": "用热力图在地图上表示南京、无锡、常州的夏季降水量。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":118.7866,\"latitude\":32.0440,\"value\":800},{\"longitude\":120.2751,\"latitude\":31.3841,\"value\":700},{\"longitude\":119.9651,\"latitude\":31.7917,\"value\":750}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":118.796877,\"latitude\":32.060255,\"value\":200},{\"longitude\":120.31237,\"latitude\":31.49099,\"value\":180},{\"longitude\":119.973987,\"latitude\":31.810689,\"value\":220}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 图表属性"] + }, + { + "type": "text2chart", + "question": "用热力图在地图上显示重庆、成都、贵阳的火锅餐馆密集度。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":106.575078,\"latitude\":29.562295,\"value\":750},{\"longitude\":104.064167,\"latitude\":30.661091,\"value\":500},{\"longitude\":106.712058,\"latitude\":26.571447,\"value\":300}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":106.551557,\"latitude\":29.56301,\"value\":250},{\"longitude\":104.066541,\"latitude\":30.572269,\"value\":300},{\"longitude\":106.713478,\"latitude\":26.578343,\"value\":200}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 基础概念"] + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longitude\":139.691711,\"latitude\":35.689487,\"intensity\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"intensity\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"intensity\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":[139.691711,35.689487],\"intensity\":450},{\"longLat\":[139.700464,35.689499],\"intensity\":750},{\"longLat\":[139.751599,35.673343],\"intensity\":200},{\"longLat\":[139.709432,35.673261],\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":\"139.691711,35.689487\",\"intensity\":450},{\"longLat\":\"139.700464,35.689499\",\"intensity\":750},{\"longLat\":\"139.751599,35.673343\",\"intensity\":200}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200}]}", + "reference": ["热力地图 - HeatMap 使用示例"] + }, + { + "type": "data2chart", + "question": "请使用热力地图显示下面的数据集 [{\"longitude\":139.691711,\"latitude\":35.689487,\"density\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"density\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"density\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"value\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"value\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"value\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"value\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"] + }, + { + "type": "data2chart", + "question": "我需要一个热力地图来可视化这个城市的交通流量 [{\"longitude\":-73.935242,\"latitude\":40.730610,\"size\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"size\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"size\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"intensity\":1300}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":-73.935242,\"latitude\":40.730610,\"value\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"value\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"value\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"value\":1300}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":-73.935242,\"latitude\":40.73061,\"value\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"value\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"value\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"value\":1300}]}", + "reference": ["热力地图 - HeatMap 基础概念"] + }, + { + "type": "data2chart", + "question": "用热力地图可视化我的数据 [{\"location\":[117.2631636796068,32.96845005431963],\"intensity\":69.97085558439525},{\"location\":[118.03457443364518,23.54160739350925],\"intensity\":96.72894462218996},{\"location\":[110.72317950871752,25.888200986455487],\"intensity\":25.548793281898156},{\"location\":[111.52491258796466,23.929054018496796],\"intensity\":15.27166619304078},{\"location\":[113.61821541011375,23.02250692360198],\"intensity\":58.47725719153524},{\"location\":[117.44013422154302,26.348763133062523],\"intensity\":46.69266178095303},{\"location\":[113.0696171481735,20.449985411265782],\"intensity\":44.35138607377186},{\"location\":[119.937246657102,31.11625268221691],\"intensity\":37.78737568033216},{\"location\":[113.71095734454273,25.85920778009953],\"intensity\":24.46832539341891},{\"location\":[110.95807715523357,21.346165245367185],\"intensity\":74.85175678874278},{\"location\":[115.77975766286066,33.92015489083041],\"intensity\":20.804395647726174},{\"location\":[116.94823536973436,24.925143708054804],\"intensity\":74.89843446508348},{\"location\":[118.98875603542126,33.171975544750914],\"intensity\":29.70712191592434},{\"location\":[113.8808580576643,29.647746609189525],\"intensity\":43.92893751842683},{\"location\":[118.86456974117549,24.747280887241512],\"intensity\":61.62945053312909},{\"location\":[114.14792388214553,29.145493112037737],\"intensity\":73.3138457399966},{\"location\":[114.33735108581602,27.18105833879061],\"intensity\":106.98438559433052},{\"location\":[113.93789994541297,30.47239395460864],\"intensity\":57.61501176134277},{\"location\":[116.53225591594949,32.85119477816538],\"intensity\":97.59905827076146},{\"location\":[110.30348925312403,24.64957653219647],\"intensity\":10.994626157137102},{\"location\":[110.87904257382175,22.18592916571427],\"intensity\":60.93974702346766},{\"location\":[116.87877188992023,22.790792197001903],\"intensity\":94.83171791641502},{\"location\":[112.01248260707887,31.571663356102633],\"intensity\":50.461451626644674},{\"location\":[114.17904827776636,21.835348137479354],\"intensity\":95.75247145191314},{\"location\":[111.03425248842645,28.959420945589116],\"intensity\":38.35352169493031},{\"location\":[116.15757024788121,24.80782662910415],\"intensity\":92.06410546446847},{\"location\":[113.53169185315357,25.813637827068494],\"intensity\":88.93270194766244},{\"location\":[118.66720253965997,32.3131002893114],\"intensity\":45.55587924788603},{\"location\":[110.6911904763668,22.319811152794042],\"intensity\":83.60898900494269},{\"location\":[110.85772818919303,20.282723922307422],\"intensity\":55.510284865962156},{\"location\":[112.3014644287556,31.665242678647065],\"intensity\":50.930421147742194},{\"location\":[113.79590965317394,26.57214965071546],\"intensity\":31.93186474682678},{\"location\":[118.17820262782132,31.128789777357248],\"intensity\":64.80930660799157},{\"location\":[110.78444379245936,21.31010452752762],\"intensity\":91.91828522739671},{\"location\":[116.37011694251282,32.407199077527764],\"intensity\":88.56250673982188},{\"location\":[117.10465989658218,26.991020522681566],\"intensity\":73.3566782111606},{\"location\":[115.21145738677595,29.8979208970228],\"intensity\":74.8797815467164},{\"location\":[116.32932981936065,31.7580481783555],\"intensity\":35.63150949392386},{\"location\":[113.2315443248823,26.72088691204187],\"intensity\":78.18320222712688},{\"location\":[112.36637220100677,30.05517642139008],\"intensity\":54.381891496899904},{\"location\":[114.88860327343446,27.33267565459124],\"intensity\":37.97636127208365},{\"location\":[113.39190414377924,21.659203859306576],\"intensity\":31.698242287686377},{\"location\":[115.47546822550588,30.112051529839377],\"intensity\":89.74730639818743},{\"location\":[113.43798544578178,30.904690946309465],\"intensity\":84.0394040742982},{\"location\":[113.55744643375515,28.914444139696545],\"intensity\":76.82749279528448},{\"location\":[112.14375737047828,20.873487427234462],\"intensity\":62.177926786368054},{\"location\":[117.83512981577667,22.011616411578412],\"intensity\":11.995634280867552},{\"location\":[115.62360961328139,30.232531085927288],\"intensity\":18.336176910118766},{\"location\":[116.4822567907673,30.597182543680518],\"intensity\":91.28255313432578},{\"location\":[114.94762432947795,25.213473967371673],\"intensity\":104.75176133024894},{\"location\":[115.18860123467341,28.759997885947456],\"intensity\":18.336281963109894},{\"location\":[112.38311021515904,29.42397272572623],\"intensity\":98.20914607585189},{\"location\":[114.59419871029036,29.287812189270646],\"intensity\":59.166805611839216},{\"location\":[118.20533656196693,23.75893343209618],\"intensity\":45.77774510458565},{\"location\":[114.77655933223895,27.755771243616206],\"intensity\":44.43572103231525},{\"location\":[114.86542061416652,32.82189070115497],\"intensity\":77.1257859813364},{\"location\":[118.4188278322408,24.45924077381262],\"intensity\":93.9556730094759},{\"location\":[114.22188039351158,28.399126904306634],\"intensity\":18.43783574336776},{\"location\":[113.2229301717609,34.104340167367496],\"intensity\":15.188189775113905},{\"location\":[112.67922227463217,30.45430836063408],\"intensity\":100.12123422157683},{\"location\":[112.33812264642434,28.622574756905784],\"intensity\":31.904820989649366},{\"location\":[111.32783239134946,26.611860533436637],\"intensity\":14.018167936156637},{\"location\":[117.41510126414757,27.571531319757554],\"intensity\":39.45055326266963},{\"location\":[113.51463744252801,33.01343047424869],\"intensity\":50.1453123029446},{\"location\":[118.85003370383647,20.340993713643243],\"intensity\":71.07568121601255},{\"location\":[112.9251644919221,28.14613586581991],\"intensity\":82.13609783469026},{\"location\":[118.13271628515554,32.6973444607446],\"intensity\":86.09939325218508},{\"location\":[111.01930141674316,21.956358507763767],\"intensity\":56.560767865117356},{\"location\":[117.84496619609025,29.24399399765656],\"intensity\":75.94762791721689},{\"location\":[119.40196367738058,31.355113268312913],\"intensity\":60.58947433604097},{\"location\":[117.37706898047844,28.413080629907853],\"intensity\":32.67062707221685},{\"location\":[113.76682500329892,34.81739994967624],\"intensity\":72.19570654005551},{\"location\":[118.6268958403464,33.809186203638205],\"intensity\":30.95453752274896},{\"location\":[110.25048237469306,27.99471867085648],\"intensity\":56.26605475356633},{\"location\":[112.92669976562216,21.998651836783086],\"intensity\":66.78600043450274},{\"location\":[116.77293553075731,21.76467919350071],\"intensity\":69.1423766736238},{\"location\":[117.08260683418038,33.27086881005704],\"intensity\":49.70194098345004},{\"location\":[116.8469025595141,23.10236452675169],\"intensity\":51.79980683622204},{\"location\":[113.19594985869698,32.93193083999035],\"intensity\":80.44407395641281},{\"location\":[113.55740332953627,30.83242358356298],\"intensity\":42.0926391472443},{\"location\":[116.32300597792603,23.648676838308653],\"intensity\":76.99984316337002},{\"location\":[117.29189537196667,21.427675551660165],\"intensity\":51.487941554156734},{\"location\":[111.10994509425029,30.059454799247533],\"intensity\":14.928216121667962},{\"location\":[119.1030851668988,29.143687143909947],\"intensity\":39.94128734043409},{\"location\":[118.86466645759587,34.60792602290435],\"intensity\":71.50551470131387},{\"location\":[113.36072229874219,23.793726347611944],\"intensity\":76.88713717975591},{\"location\":[116.04729943580973,25.77267764679027],\"intensity\":95.57733461951231},{\"location\":[115.2396491156114,22.502278328334],\"intensity\":16.420358874673337},{\"location\":[111.2137259812403,31.88979942529972],\"intensity\":50.24201272923052},{\"location\":[110.50734356545783,31.644454020499406],\"intensity\":74.7725514876099},{\"location\":[115.72077386593577,31.53969636647181],\"intensity\":28.080371282684027},{\"location\":[119.14754152570283,21.745717257851062],\"intensity\":101.75337688165432},{\"location\":[113.88355562586007,24.2589093825256],\"intensity\":22.89548924088797},{\"location\":[114.78730806677812,25.68639796114293],\"intensity\":99.30484052335035},{\"location\":[117.34452632066258,28.09885648991265],\"intensity\":79.97084045386535},{\"location\":[114.1406313474079,28.592197826462602],\"intensity\":105.84366148329646},{\"location\":[113.71975329133514,23.152590913170787],\"intensity\":106.46037351418997},{\"location\":[114.79158130284978,34.78726584476809],\"intensity\":91.01002320589589},{\"location\":[117.76652689060215,28.414623482422734],\"intensity\":69.97901934993433},{\"location\":[119.06395434457127,24.834415561149918],\"intensity\":105.7712329757857}]", + "response": "", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"value\":69.97085558439525,\"longitude\":117.2631636796068,\"latitude\":32.96845005431963},{\"value\":96.72894462218996,\"longitude\":118.03457443364518,\"latitude\":23.54160739350925},{\"value\":25.548793281898156,\"longitude\":110.72317950871752,\"latitude\":25.888200986455487},{\"value\":15.27166619304078,\"longitude\":111.52491258796466,\"latitude\":23.929054018496796},{\"value\":58.47725719153524,\"longitude\":113.61821541011375,\"latitude\":23.02250692360198},{\"value\":46.69266178095303,\"longitude\":117.44013422154302,\"latitude\":26.348763133062523},{\"value\":44.35138607377186,\"longitude\":113.0696171481735,\"latitude\":20.449985411265782},{\"value\":37.78737568033216,\"longitude\":119.937246657102,\"latitude\":31.11625268221691},{\"value\":24.46832539341891,\"longitude\":113.71095734454273,\"latitude\":25.85920778009953},{\"value\":74.85175678874278,\"longitude\":110.95807715523357,\"latitude\":21.346165245367185},{\"value\":20.804395647726174,\"longitude\":115.77975766286066,\"latitude\":33.92015489083041},{\"value\":74.89843446508348,\"longitude\":116.94823536973436,\"latitude\":24.925143708054804},{\"value\":29.70712191592434,\"longitude\":118.98875603542126,\"latitude\":33.171975544750914},{\"value\":43.92893751842683,\"longitude\":113.8808580576643,\"latitude\":29.647746609189525},{\"value\":61.62945053312909,\"longitude\":118.86456974117549,\"latitude\":24.747280887241512},{\"value\":73.3138457399966,\"longitude\":114.14792388214553,\"latitude\":29.145493112037737},{\"value\":106.98438559433052,\"longitude\":114.33735108581602,\"latitude\":27.18105833879061},{\"value\":57.61501176134277,\"longitude\":113.93789994541297,\"latitude\":30.47239395460864},{\"value\":97.59905827076146,\"longitude\":116.53225591594949,\"latitude\":32.85119477816538},{\"value\":10.994626157137102,\"longitude\":110.30348925312403,\"latitude\":24.64957653219647},{\"value\":60.93974702346766,\"longitude\":110.87904257382175,\"latitude\":22.18592916571427},{\"value\":94.83171791641502,\"longitude\":116.87877188992023,\"latitude\":22.790792197001903},{\"value\":50.461451626644674,\"longitude\":112.01248260707887,\"latitude\":31.571663356102633},{\"value\":95.75247145191314,\"longitude\":114.17904827776636,\"latitude\":21.835348137479354},{\"value\":38.35352169493031,\"longitude\":111.03425248842645,\"latitude\":28.959420945589116},{\"value\":92.06410546446847,\"longitude\":116.15757024788121,\"latitude\":24.80782662910415},{\"value\":88.93270194766244,\"longitude\":113.53169185315357,\"latitude\":25.813637827068494},{\"value\":45.55587924788603,\"longitude\":118.66720253965997,\"latitude\":32.3131002893114},{\"value\":83.60898900494269,\"longitude\":110.6911904763668,\"latitude\":22.319811152794042},{\"value\":55.510284865962156,\"longitude\":110.85772818919303,\"latitude\":20.282723922307422},{\"value\":50.930421147742194,\"longitude\":112.3014644287556,\"latitude\":31.665242678647065},{\"value\":31.93186474682678,\"longitude\":113.79590965317394,\"latitude\":26.57214965071546},{\"value\":64.80930660799157,\"longitude\":118.17820262782132,\"latitude\":31.128789777357248},{\"value\":91.91828522739671,\"longitude\":110.78444379245936,\"latitude\":21.31010452752762},{\"value\":88.56250673982188,\"longitude\":116.37011694251282,\"latitude\":32.407199077527764},{\"value\":73.3566782111606,\"longitude\":117.10465989658218,\"latitude\":26.991020522681566},{\"value\":74.8797815467164,\"longitude\":115.21145738677595,\"latitude\":29.8979208970228},{\"value\":35.63150949392386,\"longitude\":116.32932981936065,\"latitude\":31.7580481783555},{\"value\":78.18320222712688,\"longitude\":113.2315443248823,\"latitude\":26.72088691204187},{\"value\":54.381891496899904,\"longitude\":112.36637220100677,\"latitude\":30.05517642139008},{\"value\":37.97636127208365,\"longitude\":114.88860327343446,\"latitude\":27.33267565459124},{\"value\":31.698242287686377,\"longitude\":113.39190414377924,\"latitude\":21.659203859306576},{\"value\":89.74730639818743,\"longitude\":115.47546822550588,\"latitude\":30.112051529839377},{\"value\":84.0394040742982,\"longitude\":113.43798544578178,\"latitude\":30.904690946309465},{\"value\":76.82749279528448,\"longitude\":113.55744643375515,\"latitude\":28.914444139696545},{\"value\":62.177926786368054,\"longitude\":112.14375737047828,\"latitude\":20.873487427234462},{\"value\":11.995634280867552,\"longitude\":117.83512981577667,\"latitude\":22.011616411578412},{\"value\":18.336176910118766,\"longitude\":115.62360961328139,\"latitude\":30.232531085927288},{\"value\":91.28255313432578,\"longitude\":116.4822567907673,\"latitude\":30.597182543680518},{\"value\":104.75176133024894,\"longitude\":114.94762432947795,\"latitude\":25.213473967371673},{\"value\":18.336281963109894,\"longitude\":115.18860123467341,\"latitude\":28.759997885947456},{\"value\":98.20914607585189,\"longitude\":112.38311021515904,\"latitude\":29.42397272572623},{\"value\":59.166805611839216,\"longitude\":114.59419871029036,\"latitude\":29.287812189270646},{\"value\":45.77774510458565,\"longitude\":118.20533656196693,\"latitude\":23.75893343209618},{\"value\":44.43572103231525,\"longitude\":114.77655933223895,\"latitude\":27.755771243616206},{\"value\":77.1257859813364,\"longitude\":114.86542061416652,\"latitude\":32.82189070115497},{\"value\":93.9556730094759,\"longitude\":118.4188278322408,\"latitude\":24.45924077381262},{\"value\":18.43783574336776,\"longitude\":114.22188039351158,\"latitude\":28.399126904306634},{\"value\":15.188189775113905,\"longitude\":113.2229301717609,\"latitude\":34.104340167367496},{\"value\":100.12123422157683,\"longitude\":112.67922227463217,\"latitude\":30.45430836063408},{\"value\":31.904820989649366,\"longitude\":112.33812264642434,\"latitude\":28.622574756905784},{\"value\":14.018167936156637,\"longitude\":111.32783239134946,\"latitude\":26.611860533436637},{\"value\":39.45055326266963,\"longitude\":117.41510126414757,\"latitude\":27.571531319757554},{\"value\":50.1453123029446,\"longitude\":113.51463744252801,\"latitude\":33.01343047424869},{\"value\":71.07568121601255,\"longitude\":118.85003370383647,\"latitude\":20.340993713643243},{\"value\":82.13609783469026,\"longitude\":112.9251644919221,\"latitude\":28.14613586581991},{\"value\":86.09939325218508,\"longitude\":118.13271628515554,\"latitude\":32.6973444607446},{\"value\":56.560767865117356,\"longitude\":111.01930141674316,\"latitude\":21.956358507763767},{\"value\":75.94762791721689,\"longitude\":117.84496619609025,\"latitude\":29.24399399765656},{\"value\":60.58947433604097,\"longitude\":119.40196367738058,\"latitude\":31.355113268312913},{\"value\":32.67062707221685,\"longitude\":117.37706898047844,\"latitude\":28.413080629907853},{\"value\":72.19570654005551,\"longitude\":113.76682500329892,\"latitude\":34.81739994967624},{\"value\":30.95453752274896,\"longitude\":118.6268958403464,\"latitude\":33.809186203638205},{\"value\":56.26605475356633,\"longitude\":110.25048237469306,\"latitude\":27.99471867085648},{\"value\":66.78600043450274,\"longitude\":112.92669976562216,\"latitude\":21.998651836783086},{\"value\":69.1423766736238,\"longitude\":116.77293553075731,\"latitude\":21.76467919350071},{\"value\":49.70194098345004,\"longitude\":117.08260683418038,\"latitude\":33.27086881005704},{\"value\":51.79980683622204,\"longitude\":116.8469025595141,\"latitude\":23.10236452675169},{\"value\":80.44407395641281,\"longitude\":113.19594985869698,\"latitude\":32.93193083999035},{\"value\":42.0926391472443,\"longitude\":113.55740332953627,\"latitude\":30.83242358356298},{\"value\":76.99984316337002,\"longitude\":116.32300597792603,\"latitude\":23.648676838308653},{\"value\":51.487941554156734,\"longitude\":117.29189537196667,\"latitude\":21.427675551660165},{\"value\":14.928216121667962,\"longitude\":111.10994509425029,\"latitude\":30.059454799247533},{\"value\":39.94128734043409,\"longitude\":119.1030851668988,\"latitude\":29.143687143909947},{\"value\":71.50551470131387,\"longitude\":118.86466645759587,\"latitude\":34.60792602290435},{\"value\":76.88713717975591,\"longitude\":113.36072229874219,\"latitude\":23.793726347611944},{\"value\":95.57733461951231,\"longitude\":116.04729943580973,\"latitude\":25.77267764679027},{\"value\":16.420358874673337,\"longitude\":115.2396491156114,\"latitude\":22.502278328334},{\"value\":50.24201272923052,\"longitude\":111.2137259812403,\"latitude\":31.88979942529972},{\"value\":74.7725514876099,\"longitude\":110.50734356545783,\"latitude\":31.644454020499406},{\"value\":28.080371282684027,\"longitude\":115.72077386593577,\"latitude\":31.53969636647181},{\"value\":101.75337688165432,\"longitude\":119.14754152570283,\"latitude\":21.745717257851062},{\"value\":22.89548924088797,\"longitude\":113.88355562586007,\"latitude\":24.2589093825256},{\"value\":99.30484052335035,\"longitude\":114.78730806677812,\"latitude\":25.68639796114293},{\"value\":79.97084045386535,\"longitude\":117.34452632066258,\"latitude\":28.09885648991265},{\"value\":105.84366148329646,\"longitude\":114.1406313474079,\"latitude\":28.592197826462602},{\"value\":106.46037351418997,\"longitude\":113.71975329133514,\"latitude\":23.152590913170787},{\"value\":91.01002320589589,\"longitude\":114.79158130284978,\"latitude\":34.78726584476809},{\"value\":69.97901934993433,\"longitude\":117.76652689060215,\"latitude\":28.414623482422734},{\"value\":105.7712329757857,\"longitude\":119.06395434457127,\"latitude\":24.834415561149918}]}", + "reference": [] + } +] diff --git a/evaluations/datastes/chart/heat-map/metrics.json b/evaluations/datastes/chart/heat-map/metrics.json new file mode 100644 index 0000000..03a5916 --- /dev/null +++ b/evaluations/datastes/chart/heat-map/metrics.json @@ -0,0 +1,86 @@ +[ + { + "type": "text2chart", + "question": "用热力图在地图上显示北京、天津、青岛的空气质量指数。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":116.407396,\"latitude\":39.904989,\"value\":75},{\"longitude\":117.200313,\"latitude\":39.130561,\"value\":80},{\"longitude\":120.332029,\"latitude\":36.072087,\"value\":60}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":116.407395,\"latitude\":39.904211,\"value\":150},{\"longitude\":117.200983,\"latitude\":39.084158,\"value\":180},{\"longitude\":120.382639,\"latitude\":36.067082,\"value\":130}]}", + "reference": [ + "点标注地图 - PinMap 不适用场景", + "热力地图 - HeatMap 基础概念", + "面积图 - Area Chart 使用示例" + ], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "用热力图在地图上展示广州、深圳、佛山的夏季平均气温。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":113.264404,\"latitude\":23.129098,\"value\":28},{\"longitude\":114.057868,\"latitude\":22.543148,\"value\":29},{\"longitude\":113.118474,\"latitude\":23.028498,\"value\":27}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":113.264435,\"latitude\":23.129163,\"value\":35},{\"longitude\":114.057868,\"latitude\":22.543099,\"value\":34},{\"longitude\":113.122717,\"latitude\":23.028762,\"value\":36}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "用热力图在地图上表示南京、无锡、常州的夏季降水量。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":118.7866,\"latitude\":32.0440,\"value\":800},{\"longitude\":120.2751,\"latitude\":31.3841,\"value\":700},{\"longitude\":119.9651,\"latitude\":31.7917,\"value\":750}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":118.796877,\"latitude\":32.060255,\"value\":200},{\"longitude\":120.31237,\"latitude\":31.49099,\"value\":180},{\"longitude\":119.973987,\"latitude\":31.810689,\"value\":220}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 图表属性"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "用热力图在地图上显示重庆、成都、贵阳的火锅餐馆密集度。", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":106.575078,\"latitude\":29.562295,\"value\":750},{\"longitude\":104.064167,\"latitude\":30.661091,\"value\":500},{\"longitude\":106.712058,\"latitude\":26.571447,\"value\":300}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":106.551557,\"latitude\":29.56301,\"value\":250},{\"longitude\":104.066541,\"latitude\":30.572269,\"value\":300},{\"longitude\":106.713478,\"latitude\":26.578343,\"value\":200}]}", + "reference": ["点标注地图 - PinMap 不适用场景", "热力地图 - HeatMap 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longitude\":139.691711,\"latitude\":35.689487,\"intensity\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"intensity\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"intensity\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":[139.691711,35.689487],\"intensity\":450},{\"longLat\":[139.700464,35.689499],\"intensity\":750},{\"longLat\":[139.751599,35.673343],\"intensity\":200},{\"longLat\":[139.709432,35.673261],\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":\"139.691711,35.689487\",\"intensity\":450},{\"longLat\":\"139.700464,35.689499\",\"intensity\":750},{\"longLat\":\"139.751599,35.673343\",\"intensity\":200}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"value\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"value\":200}]}", + "reference": ["热力地图 - HeatMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "请使用热力地图显示下面的数据集 [{\"longitude\":139.691711,\"latitude\":35.689487,\"density\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"density\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"density\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"intensity\":600}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"value\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"value\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"value\":600}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"value\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"value\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"value\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"value\":600}]}", + "reference": ["热力地图 - HeatMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "我需要一个热力地图来可视化这个城市的交通流量 [{\"longitude\":-73.935242,\"latitude\":40.730610,\"size\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"size\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"size\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"intensity\":1300}]", + "response": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":-73.935242,\"latitude\":40.730610,\"value\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"value\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"value\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"value\":1300}]}", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"longitude\":-73.935242,\"latitude\":40.73061,\"value\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"value\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"value\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"value\":1300}]}", + "reference": ["热力地图 - HeatMap 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用热力地图可视化我的数据 [{\"location\":[117.2631636796068,32.96845005431963],\"intensity\":69.97085558439525},{\"location\":[118.03457443364518,23.54160739350925],\"intensity\":96.72894462218996},{\"location\":[110.72317950871752,25.888200986455487],\"intensity\":25.548793281898156},{\"location\":[111.52491258796466,23.929054018496796],\"intensity\":15.27166619304078},{\"location\":[113.61821541011375,23.02250692360198],\"intensity\":58.47725719153524},{\"location\":[117.44013422154302,26.348763133062523],\"intensity\":46.69266178095303},{\"location\":[113.0696171481735,20.449985411265782],\"intensity\":44.35138607377186},{\"location\":[119.937246657102,31.11625268221691],\"intensity\":37.78737568033216},{\"location\":[113.71095734454273,25.85920778009953],\"intensity\":24.46832539341891},{\"location\":[110.95807715523357,21.346165245367185],\"intensity\":74.85175678874278},{\"location\":[115.77975766286066,33.92015489083041],\"intensity\":20.804395647726174},{\"location\":[116.94823536973436,24.925143708054804],\"intensity\":74.89843446508348},{\"location\":[118.98875603542126,33.171975544750914],\"intensity\":29.70712191592434},{\"location\":[113.8808580576643,29.647746609189525],\"intensity\":43.92893751842683},{\"location\":[118.86456974117549,24.747280887241512],\"intensity\":61.62945053312909},{\"location\":[114.14792388214553,29.145493112037737],\"intensity\":73.3138457399966},{\"location\":[114.33735108581602,27.18105833879061],\"intensity\":106.98438559433052},{\"location\":[113.93789994541297,30.47239395460864],\"intensity\":57.61501176134277},{\"location\":[116.53225591594949,32.85119477816538],\"intensity\":97.59905827076146},{\"location\":[110.30348925312403,24.64957653219647],\"intensity\":10.994626157137102},{\"location\":[110.87904257382175,22.18592916571427],\"intensity\":60.93974702346766},{\"location\":[116.87877188992023,22.790792197001903],\"intensity\":94.83171791641502},{\"location\":[112.01248260707887,31.571663356102633],\"intensity\":50.461451626644674},{\"location\":[114.17904827776636,21.835348137479354],\"intensity\":95.75247145191314},{\"location\":[111.03425248842645,28.959420945589116],\"intensity\":38.35352169493031},{\"location\":[116.15757024788121,24.80782662910415],\"intensity\":92.06410546446847},{\"location\":[113.53169185315357,25.813637827068494],\"intensity\":88.93270194766244},{\"location\":[118.66720253965997,32.3131002893114],\"intensity\":45.55587924788603},{\"location\":[110.6911904763668,22.319811152794042],\"intensity\":83.60898900494269},{\"location\":[110.85772818919303,20.282723922307422],\"intensity\":55.510284865962156},{\"location\":[112.3014644287556,31.665242678647065],\"intensity\":50.930421147742194},{\"location\":[113.79590965317394,26.57214965071546],\"intensity\":31.93186474682678},{\"location\":[118.17820262782132,31.128789777357248],\"intensity\":64.80930660799157},{\"location\":[110.78444379245936,21.31010452752762],\"intensity\":91.91828522739671},{\"location\":[116.37011694251282,32.407199077527764],\"intensity\":88.56250673982188},{\"location\":[117.10465989658218,26.991020522681566],\"intensity\":73.3566782111606},{\"location\":[115.21145738677595,29.8979208970228],\"intensity\":74.8797815467164},{\"location\":[116.32932981936065,31.7580481783555],\"intensity\":35.63150949392386},{\"location\":[113.2315443248823,26.72088691204187],\"intensity\":78.18320222712688},{\"location\":[112.36637220100677,30.05517642139008],\"intensity\":54.381891496899904},{\"location\":[114.88860327343446,27.33267565459124],\"intensity\":37.97636127208365},{\"location\":[113.39190414377924,21.659203859306576],\"intensity\":31.698242287686377},{\"location\":[115.47546822550588,30.112051529839377],\"intensity\":89.74730639818743},{\"location\":[113.43798544578178,30.904690946309465],\"intensity\":84.0394040742982},{\"location\":[113.55744643375515,28.914444139696545],\"intensity\":76.82749279528448},{\"location\":[112.14375737047828,20.873487427234462],\"intensity\":62.177926786368054},{\"location\":[117.83512981577667,22.011616411578412],\"intensity\":11.995634280867552},{\"location\":[115.62360961328139,30.232531085927288],\"intensity\":18.336176910118766},{\"location\":[116.4822567907673,30.597182543680518],\"intensity\":91.28255313432578},{\"location\":[114.94762432947795,25.213473967371673],\"intensity\":104.75176133024894},{\"location\":[115.18860123467341,28.759997885947456],\"intensity\":18.336281963109894},{\"location\":[112.38311021515904,29.42397272572623],\"intensity\":98.20914607585189},{\"location\":[114.59419871029036,29.287812189270646],\"intensity\":59.166805611839216},{\"location\":[118.20533656196693,23.75893343209618],\"intensity\":45.77774510458565},{\"location\":[114.77655933223895,27.755771243616206],\"intensity\":44.43572103231525},{\"location\":[114.86542061416652,32.82189070115497],\"intensity\":77.1257859813364},{\"location\":[118.4188278322408,24.45924077381262],\"intensity\":93.9556730094759},{\"location\":[114.22188039351158,28.399126904306634],\"intensity\":18.43783574336776},{\"location\":[113.2229301717609,34.104340167367496],\"intensity\":15.188189775113905},{\"location\":[112.67922227463217,30.45430836063408],\"intensity\":100.12123422157683},{\"location\":[112.33812264642434,28.622574756905784],\"intensity\":31.904820989649366},{\"location\":[111.32783239134946,26.611860533436637],\"intensity\":14.018167936156637},{\"location\":[117.41510126414757,27.571531319757554],\"intensity\":39.45055326266963},{\"location\":[113.51463744252801,33.01343047424869],\"intensity\":50.1453123029446},{\"location\":[118.85003370383647,20.340993713643243],\"intensity\":71.07568121601255},{\"location\":[112.9251644919221,28.14613586581991],\"intensity\":82.13609783469026},{\"location\":[118.13271628515554,32.6973444607446],\"intensity\":86.09939325218508},{\"location\":[111.01930141674316,21.956358507763767],\"intensity\":56.560767865117356},{\"location\":[117.84496619609025,29.24399399765656],\"intensity\":75.94762791721689},{\"location\":[119.40196367738058,31.355113268312913],\"intensity\":60.58947433604097},{\"location\":[117.37706898047844,28.413080629907853],\"intensity\":32.67062707221685},{\"location\":[113.76682500329892,34.81739994967624],\"intensity\":72.19570654005551},{\"location\":[118.6268958403464,33.809186203638205],\"intensity\":30.95453752274896},{\"location\":[110.25048237469306,27.99471867085648],\"intensity\":56.26605475356633},{\"location\":[112.92669976562216,21.998651836783086],\"intensity\":66.78600043450274},{\"location\":[116.77293553075731,21.76467919350071],\"intensity\":69.1423766736238},{\"location\":[117.08260683418038,33.27086881005704],\"intensity\":49.70194098345004},{\"location\":[116.8469025595141,23.10236452675169],\"intensity\":51.79980683622204},{\"location\":[113.19594985869698,32.93193083999035],\"intensity\":80.44407395641281},{\"location\":[113.55740332953627,30.83242358356298],\"intensity\":42.0926391472443},{\"location\":[116.32300597792603,23.648676838308653],\"intensity\":76.99984316337002},{\"location\":[117.29189537196667,21.427675551660165],\"intensity\":51.487941554156734},{\"location\":[111.10994509425029,30.059454799247533],\"intensity\":14.928216121667962},{\"location\":[119.1030851668988,29.143687143909947],\"intensity\":39.94128734043409},{\"location\":[118.86466645759587,34.60792602290435],\"intensity\":71.50551470131387},{\"location\":[113.36072229874219,23.793726347611944],\"intensity\":76.88713717975591},{\"location\":[116.04729943580973,25.77267764679027],\"intensity\":95.57733461951231},{\"location\":[115.2396491156114,22.502278328334],\"intensity\":16.420358874673337},{\"location\":[111.2137259812403,31.88979942529972],\"intensity\":50.24201272923052},{\"location\":[110.50734356545783,31.644454020499406],\"intensity\":74.7725514876099},{\"location\":[115.72077386593577,31.53969636647181],\"intensity\":28.080371282684027},{\"location\":[119.14754152570283,21.745717257851062],\"intensity\":101.75337688165432},{\"location\":[113.88355562586007,24.2589093825256],\"intensity\":22.89548924088797},{\"location\":[114.78730806677812,25.68639796114293],\"intensity\":99.30484052335035},{\"location\":[117.34452632066258,28.09885648991265],\"intensity\":79.97084045386535},{\"location\":[114.1406313474079,28.592197826462602],\"intensity\":105.84366148329646},{\"location\":[113.71975329133514,23.152590913170787],\"intensity\":106.46037351418997},{\"location\":[114.79158130284978,34.78726584476809],\"intensity\":91.01002320589589},{\"location\":[117.76652689060215,28.414623482422734],\"intensity\":69.97901934993433},{\"location\":[119.06395434457127,24.834415561149918],\"intensity\":105.7712329757857}]", + "response": "", + "answer": "{\"type\":\"heat-map\",\"data\":[{\"value\":69.97085558439525,\"longitude\":117.2631636796068,\"latitude\":32.96845005431963},{\"value\":96.72894462218996,\"longitude\":118.03457443364518,\"latitude\":23.54160739350925},{\"value\":25.548793281898156,\"longitude\":110.72317950871752,\"latitude\":25.888200986455487},{\"value\":15.27166619304078,\"longitude\":111.52491258796466,\"latitude\":23.929054018496796},{\"value\":58.47725719153524,\"longitude\":113.61821541011375,\"latitude\":23.02250692360198},{\"value\":46.69266178095303,\"longitude\":117.44013422154302,\"latitude\":26.348763133062523},{\"value\":44.35138607377186,\"longitude\":113.0696171481735,\"latitude\":20.449985411265782},{\"value\":37.78737568033216,\"longitude\":119.937246657102,\"latitude\":31.11625268221691},{\"value\":24.46832539341891,\"longitude\":113.71095734454273,\"latitude\":25.85920778009953},{\"value\":74.85175678874278,\"longitude\":110.95807715523357,\"latitude\":21.346165245367185},{\"value\":20.804395647726174,\"longitude\":115.77975766286066,\"latitude\":33.92015489083041},{\"value\":74.89843446508348,\"longitude\":116.94823536973436,\"latitude\":24.925143708054804},{\"value\":29.70712191592434,\"longitude\":118.98875603542126,\"latitude\":33.171975544750914},{\"value\":43.92893751842683,\"longitude\":113.8808580576643,\"latitude\":29.647746609189525},{\"value\":61.62945053312909,\"longitude\":118.86456974117549,\"latitude\":24.747280887241512},{\"value\":73.3138457399966,\"longitude\":114.14792388214553,\"latitude\":29.145493112037737},{\"value\":106.98438559433052,\"longitude\":114.33735108581602,\"latitude\":27.18105833879061},{\"value\":57.61501176134277,\"longitude\":113.93789994541297,\"latitude\":30.47239395460864},{\"value\":97.59905827076146,\"longitude\":116.53225591594949,\"latitude\":32.85119477816538},{\"value\":10.994626157137102,\"longitude\":110.30348925312403,\"latitude\":24.64957653219647},{\"value\":60.93974702346766,\"longitude\":110.87904257382175,\"latitude\":22.18592916571427},{\"value\":94.83171791641502,\"longitude\":116.87877188992023,\"latitude\":22.790792197001903},{\"value\":50.461451626644674,\"longitude\":112.01248260707887,\"latitude\":31.571663356102633},{\"value\":95.75247145191314,\"longitude\":114.17904827776636,\"latitude\":21.835348137479354},{\"value\":38.35352169493031,\"longitude\":111.03425248842645,\"latitude\":28.959420945589116},{\"value\":92.06410546446847,\"longitude\":116.15757024788121,\"latitude\":24.80782662910415},{\"value\":88.93270194766244,\"longitude\":113.53169185315357,\"latitude\":25.813637827068494},{\"value\":45.55587924788603,\"longitude\":118.66720253965997,\"latitude\":32.3131002893114},{\"value\":83.60898900494269,\"longitude\":110.6911904763668,\"latitude\":22.319811152794042},{\"value\":55.510284865962156,\"longitude\":110.85772818919303,\"latitude\":20.282723922307422},{\"value\":50.930421147742194,\"longitude\":112.3014644287556,\"latitude\":31.665242678647065},{\"value\":31.93186474682678,\"longitude\":113.79590965317394,\"latitude\":26.57214965071546},{\"value\":64.80930660799157,\"longitude\":118.17820262782132,\"latitude\":31.128789777357248},{\"value\":91.91828522739671,\"longitude\":110.78444379245936,\"latitude\":21.31010452752762},{\"value\":88.56250673982188,\"longitude\":116.37011694251282,\"latitude\":32.407199077527764},{\"value\":73.3566782111606,\"longitude\":117.10465989658218,\"latitude\":26.991020522681566},{\"value\":74.8797815467164,\"longitude\":115.21145738677595,\"latitude\":29.8979208970228},{\"value\":35.63150949392386,\"longitude\":116.32932981936065,\"latitude\":31.7580481783555},{\"value\":78.18320222712688,\"longitude\":113.2315443248823,\"latitude\":26.72088691204187},{\"value\":54.381891496899904,\"longitude\":112.36637220100677,\"latitude\":30.05517642139008},{\"value\":37.97636127208365,\"longitude\":114.88860327343446,\"latitude\":27.33267565459124},{\"value\":31.698242287686377,\"longitude\":113.39190414377924,\"latitude\":21.659203859306576},{\"value\":89.74730639818743,\"longitude\":115.47546822550588,\"latitude\":30.112051529839377},{\"value\":84.0394040742982,\"longitude\":113.43798544578178,\"latitude\":30.904690946309465},{\"value\":76.82749279528448,\"longitude\":113.55744643375515,\"latitude\":28.914444139696545},{\"value\":62.177926786368054,\"longitude\":112.14375737047828,\"latitude\":20.873487427234462},{\"value\":11.995634280867552,\"longitude\":117.83512981577667,\"latitude\":22.011616411578412},{\"value\":18.336176910118766,\"longitude\":115.62360961328139,\"latitude\":30.232531085927288},{\"value\":91.28255313432578,\"longitude\":116.4822567907673,\"latitude\":30.597182543680518},{\"value\":104.75176133024894,\"longitude\":114.94762432947795,\"latitude\":25.213473967371673},{\"value\":18.336281963109894,\"longitude\":115.18860123467341,\"latitude\":28.759997885947456},{\"value\":98.20914607585189,\"longitude\":112.38311021515904,\"latitude\":29.42397272572623},{\"value\":59.166805611839216,\"longitude\":114.59419871029036,\"latitude\":29.287812189270646},{\"value\":45.77774510458565,\"longitude\":118.20533656196693,\"latitude\":23.75893343209618},{\"value\":44.43572103231525,\"longitude\":114.77655933223895,\"latitude\":27.755771243616206},{\"value\":77.1257859813364,\"longitude\":114.86542061416652,\"latitude\":32.82189070115497},{\"value\":93.9556730094759,\"longitude\":118.4188278322408,\"latitude\":24.45924077381262},{\"value\":18.43783574336776,\"longitude\":114.22188039351158,\"latitude\":28.399126904306634},{\"value\":15.188189775113905,\"longitude\":113.2229301717609,\"latitude\":34.104340167367496},{\"value\":100.12123422157683,\"longitude\":112.67922227463217,\"latitude\":30.45430836063408},{\"value\":31.904820989649366,\"longitude\":112.33812264642434,\"latitude\":28.622574756905784},{\"value\":14.018167936156637,\"longitude\":111.32783239134946,\"latitude\":26.611860533436637},{\"value\":39.45055326266963,\"longitude\":117.41510126414757,\"latitude\":27.571531319757554},{\"value\":50.1453123029446,\"longitude\":113.51463744252801,\"latitude\":33.01343047424869},{\"value\":71.07568121601255,\"longitude\":118.85003370383647,\"latitude\":20.340993713643243},{\"value\":82.13609783469026,\"longitude\":112.9251644919221,\"latitude\":28.14613586581991},{\"value\":86.09939325218508,\"longitude\":118.13271628515554,\"latitude\":32.6973444607446},{\"value\":56.560767865117356,\"longitude\":111.01930141674316,\"latitude\":21.956358507763767},{\"value\":75.94762791721689,\"longitude\":117.84496619609025,\"latitude\":29.24399399765656},{\"value\":60.58947433604097,\"longitude\":119.40196367738058,\"latitude\":31.355113268312913},{\"value\":32.67062707221685,\"longitude\":117.37706898047844,\"latitude\":28.413080629907853},{\"value\":72.19570654005551,\"longitude\":113.76682500329892,\"latitude\":34.81739994967624},{\"value\":30.95453752274896,\"longitude\":118.6268958403464,\"latitude\":33.809186203638205},{\"value\":56.26605475356633,\"longitude\":110.25048237469306,\"latitude\":27.99471867085648},{\"value\":66.78600043450274,\"longitude\":112.92669976562216,\"latitude\":21.998651836783086},{\"value\":69.1423766736238,\"longitude\":116.77293553075731,\"latitude\":21.76467919350071},{\"value\":49.70194098345004,\"longitude\":117.08260683418038,\"latitude\":33.27086881005704},{\"value\":51.79980683622204,\"longitude\":116.8469025595141,\"latitude\":23.10236452675169},{\"value\":80.44407395641281,\"longitude\":113.19594985869698,\"latitude\":32.93193083999035},{\"value\":42.0926391472443,\"longitude\":113.55740332953627,\"latitude\":30.83242358356298},{\"value\":76.99984316337002,\"longitude\":116.32300597792603,\"latitude\":23.648676838308653},{\"value\":51.487941554156734,\"longitude\":117.29189537196667,\"latitude\":21.427675551660165},{\"value\":14.928216121667962,\"longitude\":111.10994509425029,\"latitude\":30.059454799247533},{\"value\":39.94128734043409,\"longitude\":119.1030851668988,\"latitude\":29.143687143909947},{\"value\":71.50551470131387,\"longitude\":118.86466645759587,\"latitude\":34.60792602290435},{\"value\":76.88713717975591,\"longitude\":113.36072229874219,\"latitude\":23.793726347611944},{\"value\":95.57733461951231,\"longitude\":116.04729943580973,\"latitude\":25.77267764679027},{\"value\":16.420358874673337,\"longitude\":115.2396491156114,\"latitude\":22.502278328334},{\"value\":50.24201272923052,\"longitude\":111.2137259812403,\"latitude\":31.88979942529972},{\"value\":74.7725514876099,\"longitude\":110.50734356545783,\"latitude\":31.644454020499406},{\"value\":28.080371282684027,\"longitude\":115.72077386593577,\"latitude\":31.53969636647181},{\"value\":101.75337688165432,\"longitude\":119.14754152570283,\"latitude\":21.745717257851062},{\"value\":22.89548924088797,\"longitude\":113.88355562586007,\"latitude\":24.2589093825256},{\"value\":99.30484052335035,\"longitude\":114.78730806677812,\"latitude\":25.68639796114293},{\"value\":79.97084045386535,\"longitude\":117.34452632066258,\"latitude\":28.09885648991265},{\"value\":105.84366148329646,\"longitude\":114.1406313474079,\"latitude\":28.592197826462602},{\"value\":106.46037351418997,\"longitude\":113.71975329133514,\"latitude\":23.152590913170787},{\"value\":91.01002320589589,\"longitude\":114.79158130284978,\"latitude\":34.78726584476809},{\"value\":69.97901934993433,\"longitude\":117.76652689060215,\"latitude\":28.414623482422734},{\"value\":105.7712329757857,\"longitude\":119.06395434457127,\"latitude\":24.834415561149918}]}", + "reference": [], + "correctness": 0 + } +] diff --git a/evaluations/datastes/chart/heat-map/test.json b/evaluations/datastes/chart/heat-map/test.json new file mode 100644 index 0000000..762b4a5 --- /dev/null +++ b/evaluations/datastes/chart/heat-map/test.json @@ -0,0 +1,625 @@ +[ + { + "type": "text2chart", + "question": "用热力图在地图上显示北京、天津、青岛的空气质量指数。", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 116.407395, "latitude": 39.904211, "value": 150 }, + { "longitude": 117.200983, "latitude": 39.084158, "value": 180 }, + { "longitude": 120.382639, "latitude": 36.067082, "value": 130 } + ] + } + }, + { + "type": "text2chart", + "question": "用热力图在地图上展示广州、深圳、佛山的夏季平均气温。", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 113.264435, "latitude": 23.129163, "value": 35 }, + { "longitude": 114.057868, "latitude": 22.543099, "value": 34 }, + { "longitude": 113.122717, "latitude": 23.028762, "value": 36 } + ] + } + }, + { + "type": "text2chart", + "question": "用热力图在地图上表示南京、无锡、常州的夏季降水量。", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 118.796877, "latitude": 32.060255, "value": 200 }, + { "longitude": 120.31237, "latitude": 31.49099, "value": 180 }, + { "longitude": 119.973987, "latitude": 31.810689, "value": 220 } + ] + } + }, + { + "type": "text2chart", + "question": "用热力图在地图上显示重庆、成都、贵阳的火锅餐馆密集度。", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 106.551557, "latitude": 29.56301, "value": 250 }, + { "longitude": 104.066541, "latitude": 30.572269, "value": 300 }, + { "longitude": 106.713478, "latitude": 26.578343, "value": 200 } + ] + } + }, + + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longitude\":139.691711,\"latitude\":35.689487,\"intensity\":450},{\"longitude\":139.700464,\"latitude\":35.689499,\"intensity\":750},{\"longitude\":139.751599,\"latitude\":35.673343,\"intensity\":200},{\"longitude\":139.709432,\"latitude\":35.673261,\"intensity\":600}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 139.691711, "latitude": 35.689487, "value": 450 }, + { "longitude": 139.700464, "latitude": 35.689499, "value": 750 }, + { "longitude": 139.751599, "latitude": 35.673343, "value": 200 }, + { "longitude": 139.709432, "latitude": 35.673261, "value": 600 } + ] + } + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":[139.691711,35.689487],\"intensity\":450},{\"longLat\":[139.700464,35.689499],\"intensity\":750},{\"longLat\":[139.751599,35.673343],\"intensity\":200},{\"longLat\":[139.709432,35.673261],\"intensity\":600}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 139.691711, "latitude": 35.689487, "value": 450 }, + { "longitude": 139.700464, "latitude": 35.689499, "value": 750 }, + { "longitude": 139.751599, "latitude": 35.673343, "value": 200 }, + { "longitude": 139.709432, "latitude": 35.673261, "value": 600 } + ] + } + }, + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longLat\":\"139.691711,35.689487\",\"intensity\":450},{\"longLat\":\"139.700464,35.689499\",\"intensity\":750},{\"longLat\":\"139.751599,35.673343\",\"intensity\":200}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 139.691711, "latitude": 35.689487, "value": 450 }, + { "longitude": 139.700464, "latitude": 35.689499, "value": 750 }, + { "longitude": 139.751599, "latitude": 35.673343, "value": 200 } + ] + } + }, + + { + "type": "data2chart", + "question": "请使用热力地图显示下面的数据集 [{\"longitude\":139.691711,\"latitude\":35.689487,\"density\":700},{\"longitude\":139.691486,\"latitude\":35.682042,\"density\":900},{\"longitude\":139.681826,\"latitude\":35.674638,\"density\":800},{\"longitude\":139.698453,\"latitude\":35.682341,\"intensity\":600}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 139.691711, "latitude": 35.689487, "value": 700 }, + { "longitude": 139.691486, "latitude": 35.682042, "value": 900 }, + { "longitude": 139.681826, "latitude": 35.674638, "value": 800 }, + { "longitude": 139.698453, "latitude": 35.682341, "value": 600 } + ] + } + }, + { + "type": "data2chart", + "question": "我需要一个热力地图来可视化这个城市的交通流量 [{\"longitude\":-73.935242,\"latitude\":40.730610,\"size\":1200},{\"longitude\":-73.935486,\"latitude\":40.722042,\"size\":1500},{\"longitude\":-73.921826,\"latitude\":40.714638,\"size\":1000},{\"longitude\":-73.938453,\"latitude\":40.722341,\"intensity\":1300}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": -73.935242, "latitude": 40.73061, "value": 1200 }, + { "longitude": -73.935486, "latitude": 40.722042, "value": 1500 }, + { "longitude": -73.921826, "latitude": 40.714638, "value": 1000 }, + { "longitude": -73.938453, "latitude": 40.722341, "value": 1300 } + ] + } + }, + { + "type": "data2chart", + "question": "用热力地图可视化我的数据 [{\"location\":[117.2631636796068,32.96845005431963],\"intensity\":69.97085558439525},{\"location\":[118.03457443364518,23.54160739350925],\"intensity\":96.72894462218996},{\"location\":[110.72317950871752,25.888200986455487],\"intensity\":25.548793281898156},{\"location\":[111.52491258796466,23.929054018496796],\"intensity\":15.27166619304078},{\"location\":[113.61821541011375,23.02250692360198],\"intensity\":58.47725719153524},{\"location\":[117.44013422154302,26.348763133062523],\"intensity\":46.69266178095303},{\"location\":[113.0696171481735,20.449985411265782],\"intensity\":44.35138607377186},{\"location\":[119.937246657102,31.11625268221691],\"intensity\":37.78737568033216},{\"location\":[113.71095734454273,25.85920778009953],\"intensity\":24.46832539341891},{\"location\":[110.95807715523357,21.346165245367185],\"intensity\":74.85175678874278},{\"location\":[115.77975766286066,33.92015489083041],\"intensity\":20.804395647726174},{\"location\":[116.94823536973436,24.925143708054804],\"intensity\":74.89843446508348},{\"location\":[118.98875603542126,33.171975544750914],\"intensity\":29.70712191592434},{\"location\":[113.8808580576643,29.647746609189525],\"intensity\":43.92893751842683},{\"location\":[118.86456974117549,24.747280887241512],\"intensity\":61.62945053312909},{\"location\":[114.14792388214553,29.145493112037737],\"intensity\":73.3138457399966},{\"location\":[114.33735108581602,27.18105833879061],\"intensity\":106.98438559433052},{\"location\":[113.93789994541297,30.47239395460864],\"intensity\":57.61501176134277},{\"location\":[116.53225591594949,32.85119477816538],\"intensity\":97.59905827076146},{\"location\":[110.30348925312403,24.64957653219647],\"intensity\":10.994626157137102},{\"location\":[110.87904257382175,22.18592916571427],\"intensity\":60.93974702346766},{\"location\":[116.87877188992023,22.790792197001903],\"intensity\":94.83171791641502},{\"location\":[112.01248260707887,31.571663356102633],\"intensity\":50.461451626644674},{\"location\":[114.17904827776636,21.835348137479354],\"intensity\":95.75247145191314},{\"location\":[111.03425248842645,28.959420945589116],\"intensity\":38.35352169493031},{\"location\":[116.15757024788121,24.80782662910415],\"intensity\":92.06410546446847},{\"location\":[113.53169185315357,25.813637827068494],\"intensity\":88.93270194766244},{\"location\":[118.66720253965997,32.3131002893114],\"intensity\":45.55587924788603},{\"location\":[110.6911904763668,22.319811152794042],\"intensity\":83.60898900494269},{\"location\":[110.85772818919303,20.282723922307422],\"intensity\":55.510284865962156},{\"location\":[112.3014644287556,31.665242678647065],\"intensity\":50.930421147742194},{\"location\":[113.79590965317394,26.57214965071546],\"intensity\":31.93186474682678},{\"location\":[118.17820262782132,31.128789777357248],\"intensity\":64.80930660799157},{\"location\":[110.78444379245936,21.31010452752762],\"intensity\":91.91828522739671},{\"location\":[116.37011694251282,32.407199077527764],\"intensity\":88.56250673982188},{\"location\":[117.10465989658218,26.991020522681566],\"intensity\":73.3566782111606},{\"location\":[115.21145738677595,29.8979208970228],\"intensity\":74.8797815467164},{\"location\":[116.32932981936065,31.7580481783555],\"intensity\":35.63150949392386},{\"location\":[113.2315443248823,26.72088691204187],\"intensity\":78.18320222712688},{\"location\":[112.36637220100677,30.05517642139008],\"intensity\":54.381891496899904},{\"location\":[114.88860327343446,27.33267565459124],\"intensity\":37.97636127208365},{\"location\":[113.39190414377924,21.659203859306576],\"intensity\":31.698242287686377},{\"location\":[115.47546822550588,30.112051529839377],\"intensity\":89.74730639818743},{\"location\":[113.43798544578178,30.904690946309465],\"intensity\":84.0394040742982},{\"location\":[113.55744643375515,28.914444139696545],\"intensity\":76.82749279528448},{\"location\":[112.14375737047828,20.873487427234462],\"intensity\":62.177926786368054},{\"location\":[117.83512981577667,22.011616411578412],\"intensity\":11.995634280867552},{\"location\":[115.62360961328139,30.232531085927288],\"intensity\":18.336176910118766},{\"location\":[116.4822567907673,30.597182543680518],\"intensity\":91.28255313432578},{\"location\":[114.94762432947795,25.213473967371673],\"intensity\":104.75176133024894},{\"location\":[115.18860123467341,28.759997885947456],\"intensity\":18.336281963109894},{\"location\":[112.38311021515904,29.42397272572623],\"intensity\":98.20914607585189},{\"location\":[114.59419871029036,29.287812189270646],\"intensity\":59.166805611839216},{\"location\":[118.20533656196693,23.75893343209618],\"intensity\":45.77774510458565},{\"location\":[114.77655933223895,27.755771243616206],\"intensity\":44.43572103231525},{\"location\":[114.86542061416652,32.82189070115497],\"intensity\":77.1257859813364},{\"location\":[118.4188278322408,24.45924077381262],\"intensity\":93.9556730094759},{\"location\":[114.22188039351158,28.399126904306634],\"intensity\":18.43783574336776},{\"location\":[113.2229301717609,34.104340167367496],\"intensity\":15.188189775113905},{\"location\":[112.67922227463217,30.45430836063408],\"intensity\":100.12123422157683},{\"location\":[112.33812264642434,28.622574756905784],\"intensity\":31.904820989649366},{\"location\":[111.32783239134946,26.611860533436637],\"intensity\":14.018167936156637},{\"location\":[117.41510126414757,27.571531319757554],\"intensity\":39.45055326266963},{\"location\":[113.51463744252801,33.01343047424869],\"intensity\":50.1453123029446},{\"location\":[118.85003370383647,20.340993713643243],\"intensity\":71.07568121601255},{\"location\":[112.9251644919221,28.14613586581991],\"intensity\":82.13609783469026},{\"location\":[118.13271628515554,32.6973444607446],\"intensity\":86.09939325218508},{\"location\":[111.01930141674316,21.956358507763767],\"intensity\":56.560767865117356},{\"location\":[117.84496619609025,29.24399399765656],\"intensity\":75.94762791721689},{\"location\":[119.40196367738058,31.355113268312913],\"intensity\":60.58947433604097},{\"location\":[117.37706898047844,28.413080629907853],\"intensity\":32.67062707221685},{\"location\":[113.76682500329892,34.81739994967624],\"intensity\":72.19570654005551},{\"location\":[118.6268958403464,33.809186203638205],\"intensity\":30.95453752274896},{\"location\":[110.25048237469306,27.99471867085648],\"intensity\":56.26605475356633},{\"location\":[112.92669976562216,21.998651836783086],\"intensity\":66.78600043450274},{\"location\":[116.77293553075731,21.76467919350071],\"intensity\":69.1423766736238},{\"location\":[117.08260683418038,33.27086881005704],\"intensity\":49.70194098345004},{\"location\":[116.8469025595141,23.10236452675169],\"intensity\":51.79980683622204},{\"location\":[113.19594985869698,32.93193083999035],\"intensity\":80.44407395641281},{\"location\":[113.55740332953627,30.83242358356298],\"intensity\":42.0926391472443},{\"location\":[116.32300597792603,23.648676838308653],\"intensity\":76.99984316337002},{\"location\":[117.29189537196667,21.427675551660165],\"intensity\":51.487941554156734},{\"location\":[111.10994509425029,30.059454799247533],\"intensity\":14.928216121667962},{\"location\":[119.1030851668988,29.143687143909947],\"intensity\":39.94128734043409},{\"location\":[118.86466645759587,34.60792602290435],\"intensity\":71.50551470131387},{\"location\":[113.36072229874219,23.793726347611944],\"intensity\":76.88713717975591},{\"location\":[116.04729943580973,25.77267764679027],\"intensity\":95.57733461951231},{\"location\":[115.2396491156114,22.502278328334],\"intensity\":16.420358874673337},{\"location\":[111.2137259812403,31.88979942529972],\"intensity\":50.24201272923052},{\"location\":[110.50734356545783,31.644454020499406],\"intensity\":74.7725514876099},{\"location\":[115.72077386593577,31.53969636647181],\"intensity\":28.080371282684027},{\"location\":[119.14754152570283,21.745717257851062],\"intensity\":101.75337688165432},{\"location\":[113.88355562586007,24.2589093825256],\"intensity\":22.89548924088797},{\"location\":[114.78730806677812,25.68639796114293],\"intensity\":99.30484052335035},{\"location\":[117.34452632066258,28.09885648991265],\"intensity\":79.97084045386535},{\"location\":[114.1406313474079,28.592197826462602],\"intensity\":105.84366148329646},{\"location\":[113.71975329133514,23.152590913170787],\"intensity\":106.46037351418997},{\"location\":[114.79158130284978,34.78726584476809],\"intensity\":91.01002320589589},{\"location\":[117.76652689060215,28.414623482422734],\"intensity\":69.97901934993433},{\"location\":[119.06395434457127,24.834415561149918],\"intensity\":105.7712329757857}]", + "answer": { + "type": "heat-map", + "data": [ + { + "value": 69.97085558439525, + "longitude": 117.2631636796068, + "latitude": 32.96845005431963 + }, + { + "value": 96.72894462218996, + "longitude": 118.03457443364518, + "latitude": 23.54160739350925 + }, + { + "value": 25.548793281898156, + "longitude": 110.72317950871752, + "latitude": 25.888200986455487 + }, + { + "value": 15.27166619304078, + "longitude": 111.52491258796466, + "latitude": 23.929054018496796 + }, + { + "value": 58.47725719153524, + "longitude": 113.61821541011375, + "latitude": 23.02250692360198 + }, + { + "value": 46.69266178095303, + "longitude": 117.44013422154302, + "latitude": 26.348763133062523 + }, + { + "value": 44.35138607377186, + "longitude": 113.0696171481735, + "latitude": 20.449985411265782 + }, + { + "value": 37.78737568033216, + "longitude": 119.937246657102, + "latitude": 31.11625268221691 + }, + { + "value": 24.46832539341891, + "longitude": 113.71095734454273, + "latitude": 25.85920778009953 + }, + { + "value": 74.85175678874278, + "longitude": 110.95807715523357, + "latitude": 21.346165245367185 + }, + { + "value": 20.804395647726174, + "longitude": 115.77975766286066, + "latitude": 33.92015489083041 + }, + { + "value": 74.89843446508348, + "longitude": 116.94823536973436, + "latitude": 24.925143708054804 + }, + { + "value": 29.70712191592434, + "longitude": 118.98875603542126, + "latitude": 33.171975544750914 + }, + { + "value": 43.92893751842683, + "longitude": 113.8808580576643, + "latitude": 29.647746609189525 + }, + { + "value": 61.62945053312909, + "longitude": 118.86456974117549, + "latitude": 24.747280887241512 + }, + { + "value": 73.3138457399966, + "longitude": 114.14792388214553, + "latitude": 29.145493112037737 + }, + { + "value": 106.98438559433052, + "longitude": 114.33735108581602, + "latitude": 27.18105833879061 + }, + { + "value": 57.61501176134277, + "longitude": 113.93789994541297, + "latitude": 30.47239395460864 + }, + { + "value": 97.59905827076146, + "longitude": 116.53225591594949, + "latitude": 32.85119477816538 + }, + { + "value": 10.994626157137102, + "longitude": 110.30348925312403, + "latitude": 24.64957653219647 + }, + { + "value": 60.93974702346766, + "longitude": 110.87904257382175, + "latitude": 22.18592916571427 + }, + { + "value": 94.83171791641502, + "longitude": 116.87877188992023, + "latitude": 22.790792197001903 + }, + { + "value": 50.461451626644674, + "longitude": 112.01248260707887, + "latitude": 31.571663356102633 + }, + { + "value": 95.75247145191314, + "longitude": 114.17904827776636, + "latitude": 21.835348137479354 + }, + { + "value": 38.35352169493031, + "longitude": 111.03425248842645, + "latitude": 28.959420945589116 + }, + { + "value": 92.06410546446847, + "longitude": 116.15757024788121, + "latitude": 24.80782662910415 + }, + { + "value": 88.93270194766244, + "longitude": 113.53169185315357, + "latitude": 25.813637827068494 + }, + { + "value": 45.55587924788603, + "longitude": 118.66720253965997, + "latitude": 32.3131002893114 + }, + { + "value": 83.60898900494269, + "longitude": 110.6911904763668, + "latitude": 22.319811152794042 + }, + { + "value": 55.510284865962156, + "longitude": 110.85772818919303, + "latitude": 20.282723922307422 + }, + { + "value": 50.930421147742194, + "longitude": 112.3014644287556, + "latitude": 31.665242678647065 + }, + { + "value": 31.93186474682678, + "longitude": 113.79590965317394, + "latitude": 26.57214965071546 + }, + { + "value": 64.80930660799157, + "longitude": 118.17820262782132, + "latitude": 31.128789777357248 + }, + { + "value": 91.91828522739671, + "longitude": 110.78444379245936, + "latitude": 21.31010452752762 + }, + { + "value": 88.56250673982188, + "longitude": 116.37011694251282, + "latitude": 32.407199077527764 + }, + { + "value": 73.3566782111606, + "longitude": 117.10465989658218, + "latitude": 26.991020522681566 + }, + { + "value": 74.8797815467164, + "longitude": 115.21145738677595, + "latitude": 29.8979208970228 + }, + { + "value": 35.63150949392386, + "longitude": 116.32932981936065, + "latitude": 31.7580481783555 + }, + { + "value": 78.18320222712688, + "longitude": 113.2315443248823, + "latitude": 26.72088691204187 + }, + { + "value": 54.381891496899904, + "longitude": 112.36637220100677, + "latitude": 30.05517642139008 + }, + { + "value": 37.97636127208365, + "longitude": 114.88860327343446, + "latitude": 27.33267565459124 + }, + { + "value": 31.698242287686377, + "longitude": 113.39190414377924, + "latitude": 21.659203859306576 + }, + { + "value": 89.74730639818743, + "longitude": 115.47546822550588, + "latitude": 30.112051529839377 + }, + { + "value": 84.0394040742982, + "longitude": 113.43798544578178, + "latitude": 30.904690946309465 + }, + { + "value": 76.82749279528448, + "longitude": 113.55744643375515, + "latitude": 28.914444139696545 + }, + { + "value": 62.177926786368054, + "longitude": 112.14375737047828, + "latitude": 20.873487427234462 + }, + { + "value": 11.995634280867552, + "longitude": 117.83512981577667, + "latitude": 22.011616411578412 + }, + { + "value": 18.336176910118766, + "longitude": 115.62360961328139, + "latitude": 30.232531085927288 + }, + { + "value": 91.28255313432578, + "longitude": 116.4822567907673, + "latitude": 30.597182543680518 + }, + { + "value": 104.75176133024894, + "longitude": 114.94762432947795, + "latitude": 25.213473967371673 + }, + { + "value": 18.336281963109894, + "longitude": 115.18860123467341, + "latitude": 28.759997885947456 + }, + { + "value": 98.20914607585189, + "longitude": 112.38311021515904, + "latitude": 29.42397272572623 + }, + { + "value": 59.166805611839216, + "longitude": 114.59419871029036, + "latitude": 29.287812189270646 + }, + { + "value": 45.77774510458565, + "longitude": 118.20533656196693, + "latitude": 23.75893343209618 + }, + { + "value": 44.43572103231525, + "longitude": 114.77655933223895, + "latitude": 27.755771243616206 + }, + { + "value": 77.1257859813364, + "longitude": 114.86542061416652, + "latitude": 32.82189070115497 + }, + { + "value": 93.9556730094759, + "longitude": 118.4188278322408, + "latitude": 24.45924077381262 + }, + { + "value": 18.43783574336776, + "longitude": 114.22188039351158, + "latitude": 28.399126904306634 + }, + { + "value": 15.188189775113905, + "longitude": 113.2229301717609, + "latitude": 34.104340167367496 + }, + { + "value": 100.12123422157683, + "longitude": 112.67922227463217, + "latitude": 30.45430836063408 + }, + { + "value": 31.904820989649366, + "longitude": 112.33812264642434, + "latitude": 28.622574756905784 + }, + { + "value": 14.018167936156637, + "longitude": 111.32783239134946, + "latitude": 26.611860533436637 + }, + { + "value": 39.45055326266963, + "longitude": 117.41510126414757, + "latitude": 27.571531319757554 + }, + { + "value": 50.1453123029446, + "longitude": 113.51463744252801, + "latitude": 33.01343047424869 + }, + { + "value": 71.07568121601255, + "longitude": 118.85003370383647, + "latitude": 20.340993713643243 + }, + { + "value": 82.13609783469026, + "longitude": 112.9251644919221, + "latitude": 28.14613586581991 + }, + { + "value": 86.09939325218508, + "longitude": 118.13271628515554, + "latitude": 32.6973444607446 + }, + { + "value": 56.560767865117356, + "longitude": 111.01930141674316, + "latitude": 21.956358507763767 + }, + { + "value": 75.94762791721689, + "longitude": 117.84496619609025, + "latitude": 29.24399399765656 + }, + { + "value": 60.58947433604097, + "longitude": 119.40196367738058, + "latitude": 31.355113268312913 + }, + { + "value": 32.67062707221685, + "longitude": 117.37706898047844, + "latitude": 28.413080629907853 + }, + { + "value": 72.19570654005551, + "longitude": 113.76682500329892, + "latitude": 34.81739994967624 + }, + { + "value": 30.95453752274896, + "longitude": 118.6268958403464, + "latitude": 33.809186203638205 + }, + { + "value": 56.26605475356633, + "longitude": 110.25048237469306, + "latitude": 27.99471867085648 + }, + { + "value": 66.78600043450274, + "longitude": 112.92669976562216, + "latitude": 21.998651836783086 + }, + { + "value": 69.1423766736238, + "longitude": 116.77293553075731, + "latitude": 21.76467919350071 + }, + { + "value": 49.70194098345004, + "longitude": 117.08260683418038, + "latitude": 33.27086881005704 + }, + { + "value": 51.79980683622204, + "longitude": 116.8469025595141, + "latitude": 23.10236452675169 + }, + { + "value": 80.44407395641281, + "longitude": 113.19594985869698, + "latitude": 32.93193083999035 + }, + { + "value": 42.0926391472443, + "longitude": 113.55740332953627, + "latitude": 30.83242358356298 + }, + { + "value": 76.99984316337002, + "longitude": 116.32300597792603, + "latitude": 23.648676838308653 + }, + { + "value": 51.487941554156734, + "longitude": 117.29189537196667, + "latitude": 21.427675551660165 + }, + { + "value": 14.928216121667962, + "longitude": 111.10994509425029, + "latitude": 30.059454799247533 + }, + { + "value": 39.94128734043409, + "longitude": 119.1030851668988, + "latitude": 29.143687143909947 + }, + { + "value": 71.50551470131387, + "longitude": 118.86466645759587, + "latitude": 34.60792602290435 + }, + { + "value": 76.88713717975591, + "longitude": 113.36072229874219, + "latitude": 23.793726347611944 + }, + { + "value": 95.57733461951231, + "longitude": 116.04729943580973, + "latitude": 25.77267764679027 + }, + { + "value": 16.420358874673337, + "longitude": 115.2396491156114, + "latitude": 22.502278328334 + }, + { + "value": 50.24201272923052, + "longitude": 111.2137259812403, + "latitude": 31.88979942529972 + }, + { + "value": 74.7725514876099, + "longitude": 110.50734356545783, + "latitude": 31.644454020499406 + }, + { + "value": 28.080371282684027, + "longitude": 115.72077386593577, + "latitude": 31.53969636647181 + }, + { + "value": 101.75337688165432, + "longitude": 119.14754152570283, + "latitude": 21.745717257851062 + }, + { + "value": 22.89548924088797, + "longitude": 113.88355562586007, + "latitude": 24.2589093825256 + }, + { + "value": 99.30484052335035, + "longitude": 114.78730806677812, + "latitude": 25.68639796114293 + }, + { + "value": 79.97084045386535, + "longitude": 117.34452632066258, + "latitude": 28.09885648991265 + }, + { + "value": 105.84366148329646, + "longitude": 114.1406313474079, + "latitude": 28.592197826462602 + }, + { + "value": 106.46037351418997, + "longitude": 113.71975329133514, + "latitude": 23.152590913170787 + }, + { + "value": 91.01002320589589, + "longitude": 114.79158130284978, + "latitude": 34.78726584476809 + }, + { + "value": 69.97901934993433, + "longitude": 117.76652689060215, + "latitude": 28.414623482422734 + }, + { + "value": 105.7712329757857, + "longitude": 119.06395434457127, + "latitude": 24.834415561149918 + } + ] + } + } +] diff --git a/evaluations/datastes/chart/pie/eval.json b/evaluations/datastes/chart/pie/eval.json new file mode 100644 index 0000000..6a1a8cd --- /dev/null +++ b/evaluations/datastes/chart/pie/eval.json @@ -0,0 +1,97 @@ +[ + { + "type": "text2chart", + "question": "某公司 2022 年的收入来源分布为:产品销售收入 55%,服务收入 30%,其他收入 15%。请用饼图可视化这些数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"产品销售收入\",\"value\":55},{\"category\":\"服务收入\",\"value\":30},{\"category\":\"其他收入\",\"value\":15}],\"title\":\"2022年收入来源分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"产品销售收入\",\"value\":55},{\"category\":\"服务收入\",\"value\":30},{\"category\":\"其他收入\",\"value\":15}],\"title\":\"公司收入来源分布\"}", + "reference": ["饼图 - Pie Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "某大学学生专业分布为:计算机科学 25%,经济学 20%,心理学 15%,文学 10%,其他 30%。使用饼图展示学生专业分布。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"计算机科学\",\"value\":25},{\"category\":\"经济学\",\"value\":20},{\"category\":\"心理学\",\"value\":15},{\"category\":\"文学\",\"value\":10},{\"category\":\"其他\",\"value\":30}],\"title\":\"学生专业分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"计算机科学\",\"value\":25},{\"category\":\"经济学\",\"value\":20},{\"category\":\"心理学\",\"value\":15},{\"category\":\"文学\",\"value\":10},{\"category\":\"其他\",\"value\":30}],\"title\":\"大学学生专业分布\"}", + "reference": ["饼图 - Pie Chart 图表属性"] + }, + { + "type": "text2chart", + "question": "一家咖啡店的饮品销售比例为:咖啡 60%,茶 25%,果汁 15%。请用环图可视化这些饮品销售数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"咖啡\",\"value\":60},{\"category\":\"茶\",\"value\":25},{\"category\":\"果汁\",\"value\":15}],\"innerRadius\":0.6,\"title\":\"饮品销售比例\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"咖啡\",\"value\":60},{\"category\":\"茶\",\"value\":25},{\"category\":\"果汁\",\"value\":15}],\"innerRadius\":0.6,\"title\":\"咖啡店饮品销售比例\"}", + "reference": ["饼图 - Pie Chart 适用场景"] + }, + { + "type": "text2chart", + "question": "某城市交通出行方式的分布为:公交车 40%,地铁 30%,自行车 20%,其他 10%。请用饼图展示这些交通方式的使用比例。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"公交车\",\"value\":40},{\"category\":\"地铁\",\"value\":30},{\"category\":\"自行车\",\"value\":20},{\"category\":\"其他\",\"value\":10}],\"title\":\"某城市交通出行方式分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"公交车\",\"value\":40},{\"category\":\"地铁\",\"value\":30},{\"category\":\"自行车\",\"value\":20},{\"category\":\"其他\",\"value\":10}],\"title\":\"城市交通出行方式\"}", + "reference": ["饼图 - Pie Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "某公司员工的学历构成为:本科 50%,硕士 30%,博士 10%,其他 10%。请用环图可视化员工学历构成。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"本科\",\"value\":50},{\"category\":\"硕士\",\"value\":30},{\"category\":\"博士\",\"value\":10},{\"category\":\"其他\",\"value\":10}],\"innerRadius\":0.6,\"title\":\"员工学历构成\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"本科\",\"value\":50},{\"category\":\"硕士\",\"value\":30},{\"category\":\"博士\",\"value\":10},{\"category\":\"其他\",\"value\":10}],\"innerRadius\":0.6,\"title\":\"公司员工学历构成\"}", + "reference": ["饼图 - Pie Chart 使用示例"] + }, + { + "question": "根据教育部门的报告,某大学各个学院的毕业生就业率如下:工程学院 85%,文学院 75%,理学院 80%,商学院 90%,农学院 70%。用环图展示这些就业数据。", + "response": "{\"type\":\"donut\",\"data\":[{\"name\":\"工程学院\",\"value\":85},{\"name\":\"文学院\",\"value\":75},{\"name\":\"理学院\",\"value\":80},{\"name\":\"商学院\",\"value\":90},{\"name\":\"农学院\",\"value\":70}],\"title\": \"各学院毕业生就业率\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"工程学院\",\"value\":85},{\"category\":\"文学院\",\"value\":75},{\"category\":\"理学院\",\"value\":80},{\"category\":\"商学院\",\"value\":90},{\"category\":\"农学院\",\"value\":70}],\"innerRadius\":0.6,\"title\":\"各学院毕业生就业率\"}", + "reference": [] + }, + { + "question": "根据环保组织的调查,全球温室气体排放的主要来源分布如下:能源生产与使用占 70%,农业活动占 12%,工业过程占 11%,废物处理占 5%,其他占 2%。用饼图展示这些排放数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"能源生产与使用\",\"value\":70},{\"category\":\"农业活动\",\"value\":12},{\"category\":\"工业过程\",\"value\":11},{\"category\":\"废物处理\",\"value\":5},{\"category\":\"其他\",\"value\":2}],\"title\":\"全球温室气体排放来源分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"能源生产与使用\",\"value\":70},{\"category\":\"农业活动\",\"value\":12},{\"category\":\"工业过程\",\"value\":11},{\"category\":\"废物处理\",\"value\":5},{\"category\":\"其他\",\"value\":2}],\"title\":\"全球温室气体排放来源分布\"}", + "reference": ["饼图 - Pie Chart 基础概念"] + }, + { + "question": "根据旅游部门的统计,某城市游客的来源地分布如下:国内游客占 60%,亚洲游客占 20%,欧洲游客占 10%,美洲游客占 5%,其他占 5%。用饼图展示这些游客数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"国内游客\",\"value\":60},{\"category\":\"亚洲游客\",\"value\":20},{\"category\":\"欧洲游客\",\"value\":10},{\"category\":\"美洲游客\",\"value\":5},{\"category\":\"其他\",\"value\":5}],\"title\":\"游客来源地分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"国内游客\",\"value\":60},{\"category\":\"亚洲游客\",\"value\":20},{\"category\":\"欧洲游客\",\"value\":10},{\"category\":\"美洲游客\",\"value\":5},{\"category\":\"其他\",\"value\":5}],\"title\":\"某城市游客来源地分布\"}", + "reference": ["饼图 - Pie Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"苹果\", \"sales\": 5000 },{ \"name\": \"香蕉\", \"sales\": 3000 },{ \"name\": \"橙子\", \"sales\": 2000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"苹果\",\"value\":5000},{\"category\":\"香蕉\",\"value\":3000},{\"category\":\"橙子\",\"value\":2000}],\"title\":\"水果销售占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"苹果\",\"value\":5000},{\"category\":\"香蕉\",\"value\":3000},{\"category\":\"橙子\",\"value\":2000}]}", + "reference": ["饼图 - Pie Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"product\": \"电子产品\", \"revenue\": 100000 },{ \"product\": \"家具\", \"revenue\": 40000 },{ \"product\": \"服装\", \"revenue\": 60000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"电子产品\",\"value\":100000},{\"category\":\"家具\",\"value\":40000},{\"category\":\"服装\",\"value\":60000}],\"title\": \"产品营收占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"电子产品\",\"value\":100000},{\"category\":\"家具\",\"value\":40000},{\"category\":\"服装\",\"value\":60000}]}", + "reference": ["饼图 - Pie Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"手机用户\", \"count\": 70000 },{ \"name\": \"电脑用户\", \"count\": 20000 },{ \"name\": \"平板用户\", \"count\": 10000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"手机用户\",\"value\":70000},{\"category\":\"电脑用户\",\"value\":20000},{\"category\":\"平板用户\",\"value\":10000}],\"title\":\"用户设备分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"手机用户\",\"value\":70000},{\"category\":\"电脑用户\",\"value\":20000},{\"category\":\"平板用户\",\"value\":10000}]}", + "reference": ["饼图 - Pie Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"project\": \"A 类项目\", \"investment\": 150000 },{ \"project\": \"B 类项目\", \"investment\": 50000 },{ \"project\": \"C 类项目\", \"investment\": 100000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"A 类项目\",\"value\":150000},{\"category\":\"B 类项目\",\"value\":50000},{\"category\":\"C 类项目\",\"value\":100000}],\"innerRadius\":0.6,\"title\":\"项目投资占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"A 类项目\",\"value\":150000},{\"category\":\"B 类项目\",\"value\":50000},{\"category\":\"C 类项目\",\"value\":100000}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"area\": \"北美\", \"population\": 580000000 },{ \"area\": \"欧洲\", \"population\": 750000000 },{ \"area\": \"亚洲\", \"population\": 4500000000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"北美\",\"value\":580000000},{\"category\":\"欧洲\",\"value\":750000000},{\"category\":\"亚洲\",\"value\":4500000000}],\"innerRadius\":0.6,\"title\":\"各大洲人口对比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"北美\",\"value\":580000000},{\"category\":\"欧洲\",\"value\":750000000},{\"category\":\"亚洲\",\"value\":4500000000}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"title\": \"步行\",\"count\": 120.0 },{ \"title\": \"骑自行车\", \"count\": 80.0 },{ \"title\": \"开车\" ,\"count\": 200.0 },{ \"title\": \"公共交通\" ,\"count\": 150.0 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"步行\",\"value\":120.0},{\"category\":\"骑自行车\",\"value\":80.0},{\"category\":\"开车\",\"value\":200.0},{\"category\":\"公共交通\",\"value\":150.0}],\"innerRadius\":0.6,\"title\":\"出行方式占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"步行\",\"value\":120},{\"category\":\"骑自行车\",\"value\":80},{\"category\":\"开车\",\"value\":200},{\"category\":\"公共交通\",\"value\":150}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"] + } +] diff --git a/evaluations/datastes/chart/pie/metrics.json b/evaluations/datastes/chart/pie/metrics.json new file mode 100644 index 0000000..ba560de --- /dev/null +++ b/evaluations/datastes/chart/pie/metrics.json @@ -0,0 +1,111 @@ +[ + { + "type": "text2chart", + "question": "某公司 2022 年的收入来源分布为:产品销售收入 55%,服务收入 30%,其他收入 15%。请用饼图可视化这些数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"产品销售收入\",\"value\":55},{\"category\":\"服务收入\",\"value\":30},{\"category\":\"其他收入\",\"value\":15}],\"title\":\"2022年收入来源分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"产品销售收入\",\"value\":55},{\"category\":\"服务收入\",\"value\":30},{\"category\":\"其他收入\",\"value\":15}],\"title\":\"公司收入来源分布\"}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某大学学生专业分布为:计算机科学 25%,经济学 20%,心理学 15%,文学 10%,其他 30%。使用饼图展示学生专业分布。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"计算机科学\",\"value\":25},{\"category\":\"经济学\",\"value\":20},{\"category\":\"心理学\",\"value\":15},{\"category\":\"文学\",\"value\":10},{\"category\":\"其他\",\"value\":30}],\"title\":\"学生专业分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"计算机科学\",\"value\":25},{\"category\":\"经济学\",\"value\":20},{\"category\":\"心理学\",\"value\":15},{\"category\":\"文学\",\"value\":10},{\"category\":\"其他\",\"value\":30}],\"title\":\"大学学生专业分布\"}", + "reference": ["饼图 - Pie Chart 图表属性"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "一家咖啡店的饮品销售比例为:咖啡 60%,茶 25%,果汁 15%。请用环图可视化这些饮品销售数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"咖啡\",\"value\":60},{\"category\":\"茶\",\"value\":25},{\"category\":\"果汁\",\"value\":15}],\"innerRadius\":0.6,\"title\":\"饮品销售比例\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"咖啡\",\"value\":60},{\"category\":\"茶\",\"value\":25},{\"category\":\"果汁\",\"value\":15}],\"innerRadius\":0.6,\"title\":\"咖啡店饮品销售比例\"}", + "reference": ["饼图 - Pie Chart 适用场景"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某城市交通出行方式的分布为:公交车 40%,地铁 30%,自行车 20%,其他 10%。请用饼图展示这些交通方式的使用比例。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"公交车\",\"value\":40},{\"category\":\"地铁\",\"value\":30},{\"category\":\"自行车\",\"value\":20},{\"category\":\"其他\",\"value\":10}],\"title\":\"某城市交通出行方式分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"公交车\",\"value\":40},{\"category\":\"地铁\",\"value\":30},{\"category\":\"自行车\",\"value\":20},{\"category\":\"其他\",\"value\":10}],\"title\":\"城市交通出行方式\"}", + "reference": ["饼图 - Pie Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "某公司员工的学历构成为:本科 50%,硕士 30%,博士 10%,其他 10%。请用环图可视化员工学历构成。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"本科\",\"value\":50},{\"category\":\"硕士\",\"value\":30},{\"category\":\"博士\",\"value\":10},{\"category\":\"其他\",\"value\":10}],\"innerRadius\":0.6,\"title\":\"员工学历构成\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"本科\",\"value\":50},{\"category\":\"硕士\",\"value\":30},{\"category\":\"博士\",\"value\":10},{\"category\":\"其他\",\"value\":10}],\"innerRadius\":0.6,\"title\":\"公司员工学历构成\"}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + }, + { + "question": "根据教育部门的报告,某大学各个学院的毕业生就业率如下:工程学院 85%,文学院 75%,理学院 80%,商学院 90%,农学院 70%。用环图展示这些就业数据。", + "response": "{\"type\":\"donut\",\"data\":[{\"name\":\"工程学院\",\"value\":85},{\"name\":\"文学院\",\"value\":75},{\"name\":\"理学院\",\"value\":80},{\"name\":\"商学院\",\"value\":90},{\"name\":\"农学院\",\"value\":70}],\"title\": \"各学院毕业生就业率\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"工程学院\",\"value\":85},{\"category\":\"文学院\",\"value\":75},{\"category\":\"理学院\",\"value\":80},{\"category\":\"商学院\",\"value\":90},{\"category\":\"农学院\",\"value\":70}],\"innerRadius\":0.6,\"title\":\"各学院毕业生就业率\"}", + "reference": [], + "correctness": 0 + }, + { + "question": "根据环保组织的调查,全球温室气体排放的主要来源分布如下:能源生产与使用占 70%,农业活动占 12%,工业过程占 11%,废物处理占 5%,其他占 2%。用饼图展示这些排放数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"能源生产与使用\",\"value\":70},{\"category\":\"农业活动\",\"value\":12},{\"category\":\"工业过程\",\"value\":11},{\"category\":\"废物处理\",\"value\":5},{\"category\":\"其他\",\"value\":2}],\"title\":\"全球温室气体排放来源分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"能源生产与使用\",\"value\":70},{\"category\":\"农业活动\",\"value\":12},{\"category\":\"工业过程\",\"value\":11},{\"category\":\"废物处理\",\"value\":5},{\"category\":\"其他\",\"value\":2}],\"title\":\"全球温室气体排放来源分布\"}", + "reference": ["饼图 - Pie Chart 基础概念"], + "correctness": 1 + }, + { + "question": "根据旅游部门的统计,某城市游客的来源地分布如下:国内游客占 60%,亚洲游客占 20%,欧洲游客占 10%,美洲游客占 5%,其他占 5%。用饼图展示这些游客数据。", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"国内游客\",\"value\":60},{\"category\":\"亚洲游客\",\"value\":20},{\"category\":\"欧洲游客\",\"value\":10},{\"category\":\"美洲游客\",\"value\":5},{\"category\":\"其他\",\"value\":5}],\"title\":\"游客来源地分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"国内游客\",\"value\":60},{\"category\":\"亚洲游客\",\"value\":20},{\"category\":\"欧洲游客\",\"value\":10},{\"category\":\"美洲游客\",\"value\":5},{\"category\":\"其他\",\"value\":5}],\"title\":\"某城市游客来源地分布\"}", + "reference": ["饼图 - Pie Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"苹果\", \"sales\": 5000 },{ \"name\": \"香蕉\", \"sales\": 3000 },{ \"name\": \"橙子\", \"sales\": 2000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"苹果\",\"value\":5000},{\"category\":\"香蕉\",\"value\":3000},{\"category\":\"橙子\",\"value\":2000}],\"title\":\"水果销售占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"苹果\",\"value\":5000},{\"category\":\"香蕉\",\"value\":3000},{\"category\":\"橙子\",\"value\":2000}]}", + "reference": ["饼图 - Pie Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"product\": \"电子产品\", \"revenue\": 100000 },{ \"product\": \"家具\", \"revenue\": 40000 },{ \"product\": \"服装\", \"revenue\": 60000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"电子产品\",\"value\":100000},{\"category\":\"家具\",\"value\":40000},{\"category\":\"服装\",\"value\":60000}],\"title\": \"产品营收占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"电子产品\",\"value\":100000},{\"category\":\"家具\",\"value\":40000},{\"category\":\"服装\",\"value\":60000}]}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"手机用户\", \"count\": 70000 },{ \"name\": \"电脑用户\", \"count\": 20000 },{ \"name\": \"平板用户\", \"count\": 10000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"手机用户\",\"value\":70000},{\"category\":\"电脑用户\",\"value\":20000},{\"category\":\"平板用户\",\"value\":10000}],\"title\":\"用户设备分布\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"手机用户\",\"value\":70000},{\"category\":\"电脑用户\",\"value\":20000},{\"category\":\"平板用户\",\"value\":10000}]}", + "reference": ["饼图 - Pie Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"project\": \"A 类项目\", \"investment\": 150000 },{ \"project\": \"B 类项目\", \"investment\": 50000 },{ \"project\": \"C 类项目\", \"investment\": 100000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"A 类项目\",\"value\":150000},{\"category\":\"B 类项目\",\"value\":50000},{\"category\":\"C 类项目\",\"value\":100000}],\"innerRadius\":0.6,\"title\":\"项目投资占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"A 类项目\",\"value\":150000},{\"category\":\"B 类项目\",\"value\":50000},{\"category\":\"C 类项目\",\"value\":100000}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"area\": \"北美\", \"population\": 580000000 },{ \"area\": \"欧洲\", \"population\": 750000000 },{ \"area\": \"亚洲\", \"population\": 4500000000 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"北美\",\"value\":580000000},{\"category\":\"欧洲\",\"value\":750000000},{\"category\":\"亚洲\",\"value\":4500000000}],\"innerRadius\":0.6,\"title\":\"各大洲人口对比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"北美\",\"value\":580000000},{\"category\":\"欧洲\",\"value\":750000000},{\"category\":\"亚洲\",\"value\":4500000000}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"title\": \"步行\",\"count\": 120.0 },{ \"title\": \"骑自行车\", \"count\": 80.0 },{ \"title\": \"开车\" ,\"count\": 200.0 },{ \"title\": \"公共交通\" ,\"count\": 150.0 }]", + "response": "{\"type\":\"pie\",\"data\":[{\"category\":\"步行\",\"value\":120.0},{\"category\":\"骑自行车\",\"value\":80.0},{\"category\":\"开车\",\"value\":200.0},{\"category\":\"公共交通\",\"value\":150.0}],\"innerRadius\":0.6,\"title\":\"出行方式占比\"}", + "answer": "{\"type\":\"pie\",\"data\":[{\"category\":\"步行\",\"value\":120},{\"category\":\"骑自行车\",\"value\":80},{\"category\":\"开车\",\"value\":200},{\"category\":\"公共交通\",\"value\":150}],\"innerRadius\":0.6}", + "reference": ["饼图 - Pie Chart 使用示例"], + "correctness": 1 + } +] diff --git a/evaluations/datastes/chart/pie/test.json b/evaluations/datastes/chart/pie/test.json new file mode 100644 index 0000000..27dc663 --- /dev/null +++ b/evaluations/datastes/chart/pie/test.json @@ -0,0 +1,193 @@ +[ + { + "type": "text2chart", + "question": "某公司 2022 年的收入来源分布为:产品销售收入 55%,服务收入 30%,其他收入 15%。请用饼图可视化这些数据。", + "answer": { + "type": "pie", + "data": [ + { "category": "产品销售收入", "value": 55 }, + { "category": "服务收入", "value": 30 }, + { "category": "其他收入", "value": 15 } + ], + "title": "公司收入来源分布" + } + }, + { + "type": "text2chart", + "question": "某大学学生专业分布为:计算机科学 25%,经济学 20%,心理学 15%,文学 10%,其他 30%。使用饼图展示学生专业分布。", + "answer": { + "type": "pie", + "data": [ + { "category": "计算机科学", "value": 25 }, + { "category": "经济学", "value": 20 }, + { "category": "心理学", "value": 15 }, + { "category": "文学", "value": 10 }, + { "category": "其他", "value": 30 } + ], + "title": "大学学生专业分布" + } + }, + { + "type": "text2chart", + "question": "一家咖啡店的饮品销售比例为:咖啡 60%,茶 25%,果汁 15%。请用环图可视化这些饮品销售数据。", + "answer": { + "type": "pie", + "data": [ + { "category": "咖啡", "value": 60 }, + { "category": "茶", "value": 25 }, + { "category": "果汁", "value": 15 } + ], + "innerRadius": 0.6, + "title": "咖啡店饮品销售比例" + } + }, + { + "type": "text2chart", + "question": "某城市交通出行方式的分布为:公交车 40%,地铁 30%,自行车 20%,其他 10%。请用饼图展示这些交通方式的使用比例。", + "answer": { + "type": "pie", + "data": [ + { "category": "公交车", "value": 40 }, + { "category": "地铁", "value": 30 }, + { "category": "自行车", "value": 20 }, + { "category": "其他", "value": 10 } + ], + "title": "城市交通出行方式" + } + }, + { + "type": "text2chart", + "question": "某公司员工的学历构成为:本科 50%,硕士 30%,博士 10%,其他 10%。请用环图可视化员工学历构成。", + "answer": { + "type": "pie", + "data": [ + { "category": "本科", "value": 50 }, + { "category": "硕士", "value": 30 }, + { "category": "博士", "value": 10 }, + { "category": "其他", "value": 10 } + ], + "innerRadius": 0.6, + "title": "公司员工学历构成" + } + }, + { + "question": "根据教育部门的报告,某大学各个学院的毕业生就业率如下:工程学院 85%,文学院 75%,理学院 80%,商学院 90%,农学院 70%。用环图展示这些就业数据。", + "answer": { + "type": "pie", + "data": [ + { "category": "工程学院", "value": 85 }, + { "category": "文学院", "value": 75 }, + { "category": "理学院", "value": 80 }, + { "category": "商学院", "value": 90 }, + { "category": "农学院", "value": 70 } + ], + "innerRadius": 0.6, + "title": "各学院毕业生就业率" + } + }, + { + "question": "根据环保组织的调查,全球温室气体排放的主要来源分布如下:能源生产与使用占 70%,农业活动占 12%,工业过程占 11%,废物处理占 5%,其他占 2%。用饼图展示这些排放数据。", + "answer": { + "type": "pie", + "data": [ + { "category": "能源生产与使用", "value": 70 }, + { "category": "农业活动", "value": 12 }, + { "category": "工业过程", "value": 11 }, + { "category": "废物处理", "value": 5 }, + { "category": "其他", "value": 2 } + ], + "title": "全球温室气体排放来源分布" + } + }, + { + "question": "根据旅游部门的统计,某城市游客的来源地分布如下:国内游客占 60%,亚洲游客占 20%,欧洲游客占 10%,美洲游客占 5%,其他占 5%。用饼图展示这些游客数据。", + "answer": { + "type": "pie", + "data": [ + { "category": "国内游客", "value": 60 }, + { "category": "亚洲游客", "value": 20 }, + { "category": "欧洲游客", "value": 10 }, + { "category": "美洲游客", "value": 5 }, + { "category": "其他", "value": 5 } + ], + "title": "某城市游客来源地分布" + } + }, + + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"苹果\", \"sales\": 5000 },{ \"name\": \"香蕉\", \"sales\": 3000 },{ \"name\": \"橙子\", \"sales\": 2000 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "苹果", "value": 5000 }, + { "category": "香蕉", "value": 3000 }, + { "category": "橙子", "value": 2000 } + ] + } + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"product\": \"电子产品\", \"revenue\": 100000 },{ \"product\": \"家具\", \"revenue\": 40000 },{ \"product\": \"服装\", \"revenue\": 60000 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "电子产品", "value": 100000 }, + { "category": "家具", "value": 40000 }, + { "category": "服装", "value": 60000 } + ] + } + }, + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"name\": \"手机用户\", \"count\": 70000 },{ \"name\": \"电脑用户\", \"count\": 20000 },{ \"name\": \"平板用户\", \"count\": 10000 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "手机用户", "value": 70000 }, + { "category": "电脑用户", "value": 20000 }, + { "category": "平板用户", "value": 10000 } + ] + } + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"project\": \"A 类项目\", \"investment\": 150000 },{ \"project\": \"B 类项目\", \"investment\": 50000 },{ \"project\": \"C 类项目\", \"investment\": 100000 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "A 类项目", "value": 150000 }, + { "category": "B 类项目", "value": 50000 }, + { "category": "C 类项目", "value": 100000 } + ], + "innerRadius": 0.6 + } + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"area\": \"北美\", \"population\": 580000000 },{ \"area\": \"欧洲\", \"population\": 750000000 },{ \"area\": \"亚洲\", \"population\": 4500000000 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "北美", "value": 580000000 }, + { "category": "欧洲", "value": 750000000 }, + { "category": "亚洲", "value": 4500000000 } + ], + "innerRadius": 0.6 + } + }, + { + "type": "data2chart", + "question": "用环图可视化我的数据 [{ \"title\": \"步行\",\"count\": 120.0 },{ \"title\": \"骑自行车\", \"count\": 80.0 },{ \"title\": \"开车\" ,\"count\": 200.0 },{ \"title\": \"公共交通\" ,\"count\": 150.0 }]", + "answer": { + "type": "pie", + "data": [ + { "category": "步行", "value": 120 }, + { "category": "骑自行车", "value": 80 }, + { "category": "开车", "value": 200 }, + { "category": "公共交通", "value": 150 } + ], + "innerRadius": 0.6 + } + } +] diff --git a/evaluations/datastes/chart/pin-map/eval.json b/evaluations/datastes/chart/pin-map/eval.json new file mode 100644 index 0000000..9903341 --- /dev/null +++ b/evaluations/datastes/chart/pin-map/eval.json @@ -0,0 +1,78 @@ +[ + { + "type": "text2chart", + "question": "在地图上标注我最喜欢的旅游目的地:北京、西安和成都。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.407396,\"latitude\":39.904989,\"label\":\"北京\"},{\"longitude\":108.948887,\"latitude\":34.260741,\"label\":\"西安\"},{\"longitude\":104.066552,\"latitude\":30.572111,\"label\":\"成都\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.4074,\"latitude\":39.9042,\"label\":\"北京\"},{\"longitude\":108.9482,\"latitude\":34.2625,\"label\":\"西安\"},{\"longitude\":104.0665,\"latitude\":30.6589,\"label\":\"成都\"}]}", + "reference": ["点标注地图 - PinMap 使用示例", "热力地图 - HeatMap 不适用场景"] + }, + { + "type": "text2chart", + "question": "请在地图上标出中国四大名山的位置。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":117.8167,\"latitude\":31.8333,\"label\":\"黄山\"},{\"longitude\":118.0083,\"latitude\":30.6583,\"label\":\"庐山\"},{\"longitude\":110.5833,\"latitude\":29.55,\"label\":\"峨眉山\"},{\"longitude\":112.5667,\"latitude\":28.35,\"label\":\"衡山\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":117.4829,\"latitude\":35.7132,\"label\":\"泰山\"},{\"longitude\":110.4757,\"latitude\":29.5132,\"label\":\"衡山\"},{\"longitude\":103.7533,\"latitude\":34.3877,\"label\":\"华山\"},{\"longitude\":103.7234,\"latitude\":30.661,\"label\":\"峨眉山\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "text2chart", + "question": "用点标注地图表示我国五个重要的港口城市。", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 121.549792, \"latitude\": 29.868388, \"label\": \"宁波港\" },\n { \"longitude\": 121.4737, \"latitude\": 31.2304, \"label\": \"上海港\" },\n { \"longitude\": 113.322467, \"latitude\": 22.549658, \"label\": \"深圳港\" },\n { \"longitude\": 118.480887, \"latitude\": 24.477797, \"label\": \"厦门港\" },\n { \"longitude\": 121.712831, \"latitude\": 31.808459, \"label\": \"太仓港\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海港\"},{\"longitude\":113.2308,\"latitude\":23.1305,\"label\":\"广州港\"},{\"longitude\":119.2942,\"latitude\":26.075,\"label\":\"厦门港\"},{\"longitude\":120.1535,\"latitude\":30.2875,\"label\":\"宁波舟山港\"},{\"longitude\":114.1717,\"latitude\":22.2855,\"label\":\"深圳港\"}]}", + "reference": ["点标注地图 - PinMap 图表属性"] + }, + { + "type": "text2chart", + "question": "展示一下长江沿岸的主要城市(重庆、武汉、南京、上海)分布情况。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":106.555252,\"latitude\":29.562212,\"label\":\"重庆\"},{\"longitude\":114.308822,\"latitude\":30.594088,\"label\":\"武汉\"},{\"longitude\":118.786474,\"latitude\":32.044082,\"label\":\"南京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":106.5428,\"latitude\":29.563,\"label\":\"重庆\"},{\"longitude\":114.3055,\"latitude\":30.5167,\"label\":\"武汉\"},{\"longitude\":118.7968,\"latitude\":32.0617,\"label\":\"南京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "question": "展示中国四大古都的地理位置。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":113.616472,\"latitude\":34.749364,\"label\":\"洛阳\"},{\"longitude\":116.397428,\"latitude\":39.908947,\"label\":\"北京\"},{\"longitude\":108.947215,\"latitude\":34.260306,\"label\":\"西安\"},{\"longitude\":118.786528,\"latitude\":32.044062,\"label\":\"南京\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":114.3087,\"latitude\":33.6272,\"label\":\"西安\"},{\"longitude\":113.2644,\"latitude\":34.7519,\"label\":\"洛阳\"},{\"longitude\":116.4074,\"latitude\":39.9042,\"label\":\"北京\"},{\"longitude\":108.9503,\"latitude\":34.2658,\"label\":\"南京\"}]}", + "reference": ["点标注地图 - PinMap 适用场景"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [40.712776, -74.005974], \"label\": \"纽约\", \"information\": \"美国人口最多的城市\" },{ \"location\": [34.052235, -118.243683], \"label\": \"洛杉矶\", \"information\": \"以好莱坞闻名\" }]", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": -74.005974, \"latitude\": 40.712776, \"label\": \"纽约\" },\n { \"longitude\": -118.243683, \"latitude\": 34.052235, \"label\": \"洛杉矶\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":-74.005974,\"latitude\":40.712776,\"label\":\"纽约\"},{\"longitude\":-118.243683,\"latitude\":34.052235,\"label\":\"洛杉矶\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [35.689487, 139.691711], \"label\": \"东京\", \"information\": \"日本的首都\" },{ \"location\": [34.693737, 135.502167], \"label\": \"大阪\", \"information\": \"日本第二大都市区\" }]", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 139.691711, \"latitude\": 35.689487, \"label\": \"东京\" },\n { \"longitude\": 135.502167, \"latitude\": 34.693737, \"label\": \"大阪\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"label\":\"东京\"},{\"longitude\":135.502167,\"latitude\":34.693737,\"label\":\"大阪\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" }]。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [118.784767, 32.044283], \"label\": \"南京\", \"information\": \"六朝古都\" },{ \"location\": [120.153576, 30.287459], \"label\": \"杭州\", \"information\": \"美丽的西湖所在的城市\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" }]。", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 118.784767, \"latitude\": 32.044283, \"label\": \"南京\" },\n { \"longitude\": 120.153576, \"latitude\": 30.287459, \"label\": \"杭州\" },\n { \"longitude\": 121.4737, \"latitude\": 31.2304, \"label\": \"上海\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":118.784767,\"latitude\":32.044283,\"label\":\"南京\"},{\"longitude\":120.153576,\"latitude\":30.287459,\"label\":\"杭州\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" },{ \"location\": [114.057868, 22.543079], \"label\": \"深圳\", \"information\": \"中国改革开放的窗口\" }]。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"},{\"longitude\":114.057868,\"latitude\":22.543079,\"label\":\"深圳\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"},{\"longitude\":114.057868,\"latitude\":22.543079,\"label\":\"深圳\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"] + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据:[{\"location\":[118.8250735692687,31.642057818776458],\"label\":\"地点0\"},{\"location\":[116.35963740559384,25.44182161311131],\"label\":\"地点1\"},{\"location\":[111.8009517344015,28.854136284319846],\"label\":\"地点2\"},{\"location\":[118.67776084284216,33.76337404275215],\"label\":\"地点3\"},{\"location\":[114.29123919967434,24.414577719850275],\"label\":\"地点4\"},{\"location\":[117.94611326373709,23.032615845961896],\"label\":\"地点5\"},{\"location\":[113.3168157016098,26.95140254832114],\"label\":\"地点6\"},{\"location\":[112.06895481207954,29.748647614880234],\"label\":\"地点7\"},{\"location\":[116.62362603019055,23.335493591915366],\"label\":\"地点8\"},{\"location\":[113.49028680542455,22.559312503534162],\"label\":\"地点9\"},{\"location\":[114.87564808756434,31.391042320159954],\"label\":\"地点10\"},{\"location\":[114.89412398985762,30.201392294061584],\"label\":\"地点11\"},{\"location\":[113.89802895767895,30.85050724209843],\"label\":\"地点12\"},{\"location\":[113.07372758301653,25.055439410096554],\"label\":\"地点13\"},{\"location\":[117.87693836402863,33.06889758156362],\"label\":\"地点14\"},{\"location\":[112.56720702667444,27.483795665064218],\"label\":\"地点15\"},{\"location\":[114.39252770715945,26.74336401419719],\"label\":\"地点16\"},{\"location\":[115.47100133921353,28.086843116493437],\"label\":\"地点17\"},{\"location\":[110.171952258895,26.634041662558673],\"label\":\"地点18\"},{\"location\":[115.8448933111382,23.54815276404898],\"label\":\"地点19\"},{\"location\":[116.02304124796807,21.709748624584844],\"label\":\"地点20\"},{\"location\":[113.12853794097401,33.03982301404611],\"label\":\"地点21\"},{\"location\":[119.60854587796597,30.863627023683417],\"label\":\"地点22\"},{\"location\":[114.93154191706749,21.527490969421585],\"label\":\"地点23\"},{\"location\":[115.87161560707945,22.055750441144387],\"label\":\"地点24\"},{\"location\":[119.1834132297252,21.453143624276564],\"label\":\"地点25\"},{\"location\":[110.5672776574152,29.275646563747742],\"label\":\"地点26\"},{\"location\":[118.7822263692786,33.98312192573509],\"label\":\"地点27\"},{\"location\":[115.87282251650592,20.04595602078262],\"label\":\"地点28\"},{\"location\":[119.48632763831897,21.779162746145616],\"label\":\"地点29\"},{\"location\":[117.83222215260886,31.27790943705657],\"label\":\"地点30\"},{\"location\":[117.50861499809174,29.562051245758692],\"label\":\"地点31\"},{\"location\":[117.57300929557461,30.22863232876903],\"label\":\"地点32\"},{\"location\":[116.72063680022808,20.9976352630688],\"label\":\"地点33\"},{\"location\":[112.47288883789084,29.630130897776514],\"label\":\"地点34\"},{\"location\":[113.27376578400178,28.55514060881975],\"label\":\"地点35\"},{\"location\":[113.04194396392222,25.45605572009377],\"label\":\"地点36\"},{\"location\":[114.81975247910233,24.531741294705554],\"label\":\"地点37\"},{\"location\":[112.75519900368892,29.729042075354915],\"label\":\"地点38\"},{\"location\":[116.48559722370688,34.75118216889847],\"label\":\"地点39\"},{\"location\":[114.74259393584092,27.773227733572373],\"label\":\"地点40\"},{\"location\":[116.8875662124438,24.900355464919176],\"label\":\"地点41\"},{\"location\":[115.42126585371302,29.134794342531695],\"label\":\"地点42\"},{\"location\":[114.32615816392456,30.554582337883033],\"label\":\"地点43\"},{\"location\":[113.11329553451985,20.719595494450076],\"label\":\"地点44\"},{\"location\":[117.59954632014315,34.239941074975675],\"label\":\"地点45\"},{\"location\":[110.56072145615914,27.354553645810604],\"label\":\"地点46\"},{\"location\":[112.56678604716846,29.31468719700257],\"label\":\"地点47\"},{\"location\":[112.46179685127596,29.555298110449872],\"label\":\"地点48\"},{\"location\":[119.51262406807908,33.783866285762784],\"label\":\"地点49\"},{\"location\":[114.79156659016105,28.622071761852016],\"label\":\"地点50\"},{\"location\":[112.3734436431283,23.433890194817565],\"label\":\"地点51\"},{\"location\":[116.3345809487908,34.08363653992851],\"label\":\"地点52\"},{\"location\":[112.58970029764689,33.12934932777892],\"label\":\"地点53\"},{\"location\":[116.1819782671725,31.61486396858201],\"label\":\"地点54\"},{\"location\":[110.23268385580975,24.657453089226266],\"label\":\"地点55\"},{\"location\":[110.37979926126394,28.744019365383156],\"label\":\"地点56\"},{\"location\":[115.23803246479582,27.605796290235823],\"label\":\"地点57\"},{\"location\":[115.99601819482372,25.12051638091197],\"label\":\"地点58\"},{\"location\":[111.92421197597506,20.237762421737322],\"label\":\"地点59\"},{\"location\":[114.4381252155636,31.294903233704325],\"label\":\"地点60\"},{\"location\":[114.40278262801876,33.41085254614559],\"label\":\"地点61\"},{\"location\":[118.6497453284444,24.91996243462354],\"label\":\"地点62\"},{\"location\":[112.8252467829329,29.71776260871627],\"label\":\"地点63\"},{\"location\":[111.70055123982434,30.37760838377917],\"label\":\"地点64\"},{\"location\":[112.2908623525636,20.636608908358827],\"label\":\"地点65\"},{\"location\":[116.29913159285731,21.117647387286883],\"label\":\"地点66\"},{\"location\":[110.64997748910217,30.632978762384635],\"label\":\"地点67\"},{\"location\":[115.03551142849408,28.76166753538753],\"label\":\"地点68\"},{\"location\":[118.16828223169694,27.86560075368348],\"label\":\"地点69\"},{\"location\":[116.64388416894342,23.732889431625605],\"label\":\"地点70\"},{\"location\":[117.01716202317607,26.411745335085847],\"label\":\"地点71\"},{\"location\":[119.0528502736986,30.975780240157185],\"label\":\"地点72\"},{\"location\":[111.62098581870485,24.20961231434314],\"label\":\"地点73\"},{\"location\":[112.90681498498914,23.40462485091016],\"label\":\"地点74\"},{\"location\":[113.87290725172237,27.957210905982787],\"label\":\"地点75\"},{\"location\":[111.4351281539321,26.067394202010092],\"label\":\"地点76\"},{\"location\":[112.17865402329603,23.459726725155463],\"label\":\"地点77\"},{\"location\":[118.6067805466999,20.430889502284213],\"label\":\"地点78\"},{\"location\":[119.86100215229368,22.606302215596465],\"label\":\"地点79\"},{\"location\":[112.58061715449392,31.142494941046696],\"label\":\"地点80\"},{\"location\":[118.6902238533758,30.741504740446324],\"label\":\"地点81\"},{\"location\":[112.5477506596301,25.031569551508312],\"label\":\"地点82\"},{\"location\":[119.21276211388378,33.69532765635268],\"label\":\"地点83\"},{\"location\":[114.07547642575129,27.453785530612798],\"label\":\"地点84\"},{\"location\":[110.41265620827224,31.98931823405719],\"label\":\"地点85\"},{\"location\":[112.15414159544264,30.707017721158167],\"label\":\"地点86\"},{\"location\":[119.38755922857605,24.47340078670114],\"label\":\"地点87\"},{\"location\":[111.72098564265526,27.365719272041805],\"label\":\"地点88\"},{\"location\":[115.71930618872699,25.470868999884143],\"label\":\"地点89\"},{\"location\":[116.7633609569867,27.900665635285762],\"label\":\"地点90\"},{\"location\":[110.64906147977024,25.72070294929258],\"label\":\"地点91\"},{\"location\":[118.74245248242234,28.331578115698314],\"label\":\"地点92\"},{\"location\":[117.98769547377907,30.610126792564532],\"label\":\"地点93\"},{\"location\":[119.00204494179899,21.648573833072902],\"label\":\"地点94\"},{\"location\":[116.6179613174326,25.600266308896597],\"label\":\"地点95\"},{\"location\":[116.5858571156058,29.268767376052487],\"label\":\"地点96\"},{\"location\":[114.05339159745577,21.567441619727603],\"label\":\"地点97\"},{\"location\":[119.02419400402812,23.944254060602287],\"label\":\"地点98\"},{\"location\":[114.55328204095066,33.2515212933515],\"label\":\"地点99\"}]", + "response": "{\"type\":\"scattermapbox\",\"data\":[{\"type\":\"scattermapbox\",\"mode\":\"markers\",\"lat\":[31.642057818776458,25.44182161311131,28.854136284319846,33.76337404275215,24.414577719850275,23.032615845961896,26.95140254832114,29.748647614880234,23.335493591915366,22.559312503534162,31.391042320159954,30.201392294061584,30.85050724209843,25.055439410096554,33.06889758156362,27.483795665064218,26.74336401419719,28.086843116493437,26.634041662558673,23.54815276404898,21.709748624584844,33.03982301404611,30.863627023683417,21.527490969421585,22.055750441144387,21.453143624276564,29.275646563747742,33.98312192573509,20.04595602078262,21.779162746145616,31.27790943705657,29.562051245758692,30.22863232876903,20.9976352630688,29.630130897776514,28.55514060881975,25.45605572009377,24.531741294705554,29.729042075354915,34.75118216889847,27.773227733572373,24.900355464919176,29.134794342531695,30.554582337883033,20.719595494450076,34.239941074975675,27.354553645810604,29.31468719700257,29.555298110449872,33.783866285762784,28.622071761852016,23.433890194817565,34.08363653992851,33.12934932777892,31.61486396858201,24.657453089226266,28.744019365383156,27.605796290235823,25.12051638091197,20.237762421737322,31.294903233704325,33.41085254614559,24.91996243462354,29.71776260871627,30.37760838377917,20.636608908358827,21.117647387286883,30.632978762384635,28.76166753538753,27.86560075368348,23.732889431625605,26.411745335085847,30.975780240157185,24.20961231434314,23.40462485091016,27.957210905982787,26.067394202010092,23.459726725155463,20.430889502284213,22.606302215596465,31.142494941046696,30.741504740446324,25.031569551508312,33.69532765635268,27.453785530612798,31.98931823405719,30.707017721158167,24.47340078670114,27.365719272041805,25.470868999884143,27.900665635285762,25.72070294929258,28.331578115698314,30.610126792564532,21.648573833072902,25.600266308896597,29.268767376052487,21.567441619727603,23.944254060602287,33.2515212933515],\"lon\":[118.8250735692687,116.35963740559384,111.8009517344015,118.67776084284216,114.29123919967434,117.94611326373709,113.3168157016098,112.06895481207954,116.62362603", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"label\":\"地点0\",\"longitude\":118.8250735692687,\"latitude\":31.642057818776458},{\"label\":\"地点1\",\"longitude\":116.35963740559384,\"latitude\":25.44182161311131},{\"label\":\"地点2\",\"longitude\":111.8009517344015,\"latitude\":28.854136284319846},{\"label\":\"地点3\",\"longitude\":118.67776084284216,\"latitude\":33.76337404275215},{\"label\":\"地点4\",\"longitude\":114.29123919967434,\"latitude\":24.414577719850275},{\"label\":\"地点5\",\"longitude\":117.94611326373709,\"latitude\":23.032615845961896},{\"label\":\"地点6\",\"longitude\":113.3168157016098,\"latitude\":26.95140254832114},{\"label\":\"地点7\",\"longitude\":112.06895481207954,\"latitude\":29.748647614880234},{\"label\":\"地点8\",\"longitude\":116.62362603019055,\"latitude\":23.335493591915366},{\"label\":\"地点9\",\"longitude\":113.49028680542455,\"latitude\":22.559312503534162},{\"label\":\"地点10\",\"longitude\":114.87564808756434,\"latitude\":31.391042320159954},{\"label\":\"地点11\",\"longitude\":114.89412398985762,\"latitude\":30.201392294061584},{\"label\":\"地点12\",\"longitude\":113.89802895767895,\"latitude\":30.85050724209843},{\"label\":\"地点13\",\"longitude\":113.07372758301653,\"latitude\":25.055439410096554},{\"label\":\"地点14\",\"longitude\":117.87693836402863,\"latitude\":33.06889758156362},{\"label\":\"地点15\",\"longitude\":112.56720702667444,\"latitude\":27.483795665064218},{\"label\":\"地点16\",\"longitude\":114.39252770715945,\"latitude\":26.74336401419719},{\"label\":\"地点17\",\"longitude\":115.47100133921353,\"latitude\":28.086843116493437},{\"label\":\"地点18\",\"longitude\":110.171952258895,\"latitude\":26.634041662558673},{\"label\":\"地点19\",\"longitude\":115.8448933111382,\"latitude\":23.54815276404898},{\"label\":\"地点20\",\"longitude\":116.02304124796807,\"latitude\":21.709748624584844},{\"label\":\"地点21\",\"longitude\":113.12853794097401,\"latitude\":33.03982301404611},{\"label\":\"地点22\",\"longitude\":119.60854587796597,\"latitude\":30.863627023683417},{\"label\":\"地点23\",\"longitude\":114.93154191706749,\"latitude\":21.527490969421585},{\"label\":\"地点24\",\"longitude\":115.87161560707945,\"latitude\":22.055750441144387},{\"label\":\"地点25\",\"longitude\":119.1834132297252,\"latitude\":21.453143624276564},{\"label\":\"地点26\",\"longitude\":110.5672776574152,\"latitude\":29.275646563747742},{\"label\":\"地点27\",\"longitude\":118.7822263692786,\"latitude\":33.98312192573509},{\"label\":\"地点28\",\"longitude\":115.87282251650592,\"latitude\":20.04595602078262},{\"label\":\"地点29\",\"longitude\":119.48632763831897,\"latitude\":21.779162746145616},{\"label\":\"地点30\",\"longitude\":117.83222215260886,\"latitude\":31.27790943705657},{\"label\":\"地点31\",\"longitude\":117.50861499809174,\"latitude\":29.562051245758692},{\"label\":\"地点32\",\"longitude\":117.57300929557461,\"latitude\":30.22863232876903},{\"label\":\"地点33\",\"longitude\":116.72063680022808,\"latitude\":20.9976352630688},{\"label\":\"地点34\",\"longitude\":112.47288883789084,\"latitude\":29.630130897776514},{\"label\":\"地点35\",\"longitude\":113.27376578400178,\"latitude\":28.55514060881975},{\"label\":\"地点36\",\"longitude\":113.04194396392222,\"latitude\":25.45605572009377},{\"label\":\"地点37\",\"longitude\":114.81975247910233,\"latitude\":24.531741294705554},{\"label\":\"地点38\",\"longitude\":112.75519900368892,\"latitude\":29.729042075354915},{\"label\":\"地点39\",\"longitude\":116.48559722370688,\"latitude\":34.75118216889847},{\"label\":\"地点40\",\"longitude\":114.74259393584092,\"latitude\":27.773227733572373},{\"label\":\"地点41\",\"longitude\":116.8875662124438,\"latitude\":24.900355464919176},{\"label\":\"地点42\",\"longitude\":115.42126585371302,\"latitude\":29.134794342531695},{\"label\":\"地点43\",\"longitude\":114.32615816392456,\"latitude\":30.554582337883033},{\"label\":\"地点44\",\"longitude\":113.11329553451985,\"latitude\":20.719595494450076},{\"label\":\"地点45\",\"longitude\":117.59954632014315,\"latitude\":34.239941074975675},{\"label\":\"地点46\",\"longitude\":110.56072145615914,\"latitude\":27.354553645810604},{\"label\":\"地点47\",\"longitude\":112.56678604716846,\"latitude\":29.31468719700257},{\"label\":\"地点48\",\"longitude\":112.46179685127596,\"latitude\":29.555298110449872},{\"label\":\"地点49\",\"longitude\":119.51262406807908,\"latitude\":33.783866285762784},{\"label\":\"地点50\",\"longitude\":114.79156659016105,\"latitude\":28.622071761852016},{\"label\":\"地点51\",\"longitude\":112.3734436431283,\"latitude\":23.433890194817565},{\"label\":\"地点52\",\"longitude\":116.3345809487908,\"latitude\":34.08363653992851},{\"label\":\"地点53\",\"longitude\":112.58970029764689,\"latitude\":33.12934932777892},{\"label\":\"地点54\",\"longitude\":116.1819782671725,\"latitude\":31.61486396858201},{\"label\":\"地点55\",\"longitude\":110.23268385580975,\"latitude\":24.657453089226266},{\"label\":\"地点56\",\"longitude\":110.37979926126394,\"latitude\":28.744019365383156},{\"label\":\"地点57\",\"longitude\":115.23803246479582,\"latitude\":27.605796290235823},{\"label\":\"地点58\",\"longitude\":115.99601819482372,\"latitude\":25.12051638091197},{\"label\":\"地点59\",\"longitude\":111.92421197597506,\"latitude\":20.237762421737322},{\"label\":\"地点60\",\"longitude\":114.4381252155636,\"latitude\":31.294903233704325},{\"label\":\"地点61\",\"longitude\":114.40278262801876,\"latitude\":33.41085254614559},{\"label\":\"地点62\",\"longitude\":118.6497453284444,\"latitude\":24.91996243462354},{\"label\":\"地点63\",\"longitude\":112.8252467829329,\"latitude\":29.71776260871627},{\"label\":\"地点64\",\"longitude\":111.70055123982434,\"latitude\":30.37760838377917},{\"label\":\"地点65\",\"longitude\":112.2908623525636,\"latitude\":20.636608908358827},{\"label\":\"地点66\",\"longitude\":116.29913159285731,\"latitude\":21.117647387286883},{\"label\":\"地点67\",\"longitude\":110.64997748910217,\"latitude\":30.632978762384635},{\"label\":\"地点68\",\"longitude\":115.03551142849408,\"latitude\":28.76166753538753},{\"label\":\"地点69\",\"longitude\":118.16828223169694,\"latitude\":27.86560075368348},{\"label\":\"地点70\",\"longitude\":116.64388416894342,\"latitude\":23.732889431625605},{\"label\":\"地点71\",\"longitude\":117.01716202317607,\"latitude\":26.411745335085847},{\"label\":\"地点72\",\"longitude\":119.0528502736986,\"latitude\":30.975780240157185},{\"label\":\"地点73\",\"longitude\":111.62098581870485,\"latitude\":24.20961231434314},{\"label\":\"地点74\",\"longitude\":112.90681498498914,\"latitude\":23.40462485091016},{\"label\":\"地点75\",\"longitude\":113.87290725172237,\"latitude\":27.957210905982787},{\"label\":\"地点76\",\"longitude\":111.4351281539321,\"latitude\":26.067394202010092},{\"label\":\"地点77\",\"longitude\":112.17865402329603,\"latitude\":23.459726725155463},{\"label\":\"地点78\",\"longitude\":118.6067805466999,\"latitude\":20.430889502284213},{\"label\":\"地点79\",\"longitude\":119.86100215229368,\"latitude\":22.606302215596465},{\"label\":\"地点80\",\"longitude\":112.58061715449392,\"latitude\":31.142494941046696},{\"label\":\"地点81\",\"longitude\":118.6902238533758,\"latitude\":30.741504740446324},{\"label\":\"地点82\",\"longitude\":112.5477506596301,\"latitude\":25.031569551508312},{\"label\":\"地点83\",\"longitude\":119.21276211388378,\"latitude\":33.69532765635268},{\"label\":\"地点84\",\"longitude\":114.07547642575129,\"latitude\":27.453785530612798},{\"label\":\"地点85\",\"longitude\":110.41265620827224,\"latitude\":31.98931823405719},{\"label\":\"地点86\",\"longitude\":112.15414159544264,\"latitude\":30.707017721158167},{\"label\":\"地点87\",\"longitude\":119.38755922857605,\"latitude\":24.47340078670114},{\"label\":\"地点88\",\"longitude\":111.72098564265526,\"latitude\":27.365719272041805},{\"label\":\"地点89\",\"longitude\":115.71930618872699,\"latitude\":25.470868999884143},{\"label\":\"地点90\",\"longitude\":116.7633609569867,\"latitude\":27.900665635285762},{\"label\":\"地点91\",\"longitude\":110.64906147977024,\"latitude\":25.72070294929258},{\"label\":\"地点92\",\"longitude\":118.74245248242234,\"latitude\":28.331578115698314},{\"label\":\"地点93\",\"longitude\":117.98769547377907,\"latitude\":30.610126792564532},{\"label\":\"地点94\",\"longitude\":119.00204494179899,\"latitude\":21.648573833072902},{\"label\":\"地点95\",\"longitude\":116.6179613174326,\"latitude\":25.600266308896597},{\"label\":\"地点96\",\"longitude\":116.5858571156058,\"latitude\":29.268767376052487},{\"label\":\"地点97\",\"longitude\":114.05339159745577,\"latitude\":21.567441619727603},{\"label\":\"地点98\",\"longitude\":119.02419400402812,\"latitude\":23.944254060602287},{\"label\":\"地点99\",\"longitude\":114.55328204095066,\"latitude\":33.2515212933515}]}", + "reference": [] + } +] diff --git a/evaluations/datastes/chart/pin-map/metrics.json b/evaluations/datastes/chart/pin-map/metrics.json new file mode 100644 index 0000000..7af733d --- /dev/null +++ b/evaluations/datastes/chart/pin-map/metrics.json @@ -0,0 +1,89 @@ +[ + { + "type": "text2chart", + "question": "在地图上标注我最喜欢的旅游目的地:北京、西安和成都。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.407396,\"latitude\":39.904989,\"label\":\"北京\"},{\"longitude\":108.948887,\"latitude\":34.260741,\"label\":\"西安\"},{\"longitude\":104.066552,\"latitude\":30.572111,\"label\":\"成都\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.4074,\"latitude\":39.9042,\"label\":\"北京\"},{\"longitude\":108.9482,\"latitude\":34.2625,\"label\":\"西安\"},{\"longitude\":104.0665,\"latitude\":30.6589,\"label\":\"成都\"}]}", + "reference": ["点标注地图 - PinMap 使用示例", "热力地图 - HeatMap 不适用场景"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "请在地图上标出中国四大名山的位置。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":117.8167,\"latitude\":31.8333,\"label\":\"黄山\"},{\"longitude\":118.0083,\"latitude\":30.6583,\"label\":\"庐山\"},{\"longitude\":110.5833,\"latitude\":29.55,\"label\":\"峨眉山\"},{\"longitude\":112.5667,\"latitude\":28.35,\"label\":\"衡山\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":117.4829,\"latitude\":35.7132,\"label\":\"泰山\"},{\"longitude\":110.4757,\"latitude\":29.5132,\"label\":\"衡山\"},{\"longitude\":103.7533,\"latitude\":34.3877,\"label\":\"华山\"},{\"longitude\":103.7234,\"latitude\":30.661,\"label\":\"峨眉山\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "用点标注地图表示我国五个重要的港口城市。", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 121.549792, \"latitude\": 29.868388, \"label\": \"宁波港\" },\n { \"longitude\": 121.4737, \"latitude\": 31.2304, \"label\": \"上海港\" },\n { \"longitude\": 113.322467, \"latitude\": 22.549658, \"label\": \"深圳港\" },\n { \"longitude\": 118.480887, \"latitude\": 24.477797, \"label\": \"厦门港\" },\n { \"longitude\": 121.712831, \"latitude\": 31.808459, \"label\": \"太仓港\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海港\"},{\"longitude\":113.2308,\"latitude\":23.1305,\"label\":\"广州港\"},{\"longitude\":119.2942,\"latitude\":26.075,\"label\":\"厦门港\"},{\"longitude\":120.1535,\"latitude\":30.2875,\"label\":\"宁波舟山港\"},{\"longitude\":114.1717,\"latitude\":22.2855,\"label\":\"深圳港\"}]}", + "reference": ["点标注地图 - PinMap 图表属性"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "展示一下长江沿岸的主要城市(重庆、武汉、南京、上海)分布情况。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":106.555252,\"latitude\":29.562212,\"label\":\"重庆\"},{\"longitude\":114.308822,\"latitude\":30.594088,\"label\":\"武汉\"},{\"longitude\":118.786474,\"latitude\":32.044082,\"label\":\"南京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":106.5428,\"latitude\":29.563,\"label\":\"重庆\"},{\"longitude\":114.3055,\"latitude\":30.5167,\"label\":\"武汉\"},{\"longitude\":118.7968,\"latitude\":32.0617,\"label\":\"南京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "question": "展示中国四大古都的地理位置。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":113.616472,\"latitude\":34.749364,\"label\":\"洛阳\"},{\"longitude\":116.397428,\"latitude\":39.908947,\"label\":\"北京\"},{\"longitude\":108.947215,\"latitude\":34.260306,\"label\":\"西安\"},{\"longitude\":118.786528,\"latitude\":32.044062,\"label\":\"南京\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":114.3087,\"latitude\":33.6272,\"label\":\"西安\"},{\"longitude\":113.2644,\"latitude\":34.7519,\"label\":\"洛阳\"},{\"longitude\":116.4074,\"latitude\":39.9042,\"label\":\"北京\"},{\"longitude\":108.9503,\"latitude\":34.2658,\"label\":\"南京\"}]}", + "reference": ["点标注地图 - PinMap 适用场景"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [40.712776, -74.005974], \"label\": \"纽约\", \"information\": \"美国人口最多的城市\" },{ \"location\": [34.052235, -118.243683], \"label\": \"洛杉矶\", \"information\": \"以好莱坞闻名\" }]", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": -74.005974, \"latitude\": 40.712776, \"label\": \"纽约\" },\n { \"longitude\": -118.243683, \"latitude\": 34.052235, \"label\": \"洛杉矶\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":-74.005974,\"latitude\":40.712776,\"label\":\"纽约\"},{\"longitude\":-118.243683,\"latitude\":34.052235,\"label\":\"洛杉矶\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [35.689487, 139.691711], \"label\": \"东京\", \"information\": \"日本的首都\" },{ \"location\": [34.693737, 135.502167], \"label\": \"大阪\", \"information\": \"日本第二大都市区\" }]", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 139.691711, \"latitude\": 35.689487, \"label\": \"东京\" },\n { \"longitude\": 135.502167, \"latitude\": 34.693737, \"label\": \"大阪\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":139.691711,\"latitude\":35.689487,\"label\":\"东京\"},{\"longitude\":135.502167,\"latitude\":34.693737,\"label\":\"大阪\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" }]。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [118.784767, 32.044283], \"label\": \"南京\", \"information\": \"六朝古都\" },{ \"location\": [120.153576, 30.287459], \"label\": \"杭州\", \"information\": \"美丽的西湖所在的城市\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" }]。", + "response": "{\n \"type\": \"pin-map\",\n \"data\": [\n { \"longitude\": 118.784767, \"latitude\": 32.044283, \"label\": \"南京\" },\n { \"longitude\": 120.153576, \"latitude\": 30.287459, \"label\": \"杭州\" },\n { \"longitude\": 121.4737, \"latitude\": 31.2304, \"label\": \"上海\" }\n ]\n}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":118.784767,\"latitude\":32.044283,\"label\":\"南京\"},{\"longitude\":120.153576,\"latitude\":30.287459,\"label\":\"杭州\"},{\"longitude\":121.4737,\"latitude\":31.2304,\"label\":\"上海\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" },{ \"location\": [114.057868, 22.543079], \"label\": \"深圳\", \"information\": \"中国改革开放的窗口\" }]。", + "response": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"},{\"longitude\":114.057868,\"latitude\":22.543079,\"label\":\"深圳\"}]}", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"longitude\":116.3974,\"latitude\":39.9087,\"label\":\"北京\"},{\"longitude\":113.2644,\"latitude\":23.1291,\"label\":\"广州\"},{\"longitude\":114.057868,\"latitude\":22.543079,\"label\":\"深圳\"}]}", + "reference": ["点标注地图 - PinMap 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据:[{\"location\":[118.8250735692687,31.642057818776458],\"label\":\"地点0\"},{\"location\":[116.35963740559384,25.44182161311131],\"label\":\"地点1\"},{\"location\":[111.8009517344015,28.854136284319846],\"label\":\"地点2\"},{\"location\":[118.67776084284216,33.76337404275215],\"label\":\"地点3\"},{\"location\":[114.29123919967434,24.414577719850275],\"label\":\"地点4\"},{\"location\":[117.94611326373709,23.032615845961896],\"label\":\"地点5\"},{\"location\":[113.3168157016098,26.95140254832114],\"label\":\"地点6\"},{\"location\":[112.06895481207954,29.748647614880234],\"label\":\"地点7\"},{\"location\":[116.62362603019055,23.335493591915366],\"label\":\"地点8\"},{\"location\":[113.49028680542455,22.559312503534162],\"label\":\"地点9\"},{\"location\":[114.87564808756434,31.391042320159954],\"label\":\"地点10\"},{\"location\":[114.89412398985762,30.201392294061584],\"label\":\"地点11\"},{\"location\":[113.89802895767895,30.85050724209843],\"label\":\"地点12\"},{\"location\":[113.07372758301653,25.055439410096554],\"label\":\"地点13\"},{\"location\":[117.87693836402863,33.06889758156362],\"label\":\"地点14\"},{\"location\":[112.56720702667444,27.483795665064218],\"label\":\"地点15\"},{\"location\":[114.39252770715945,26.74336401419719],\"label\":\"地点16\"},{\"location\":[115.47100133921353,28.086843116493437],\"label\":\"地点17\"},{\"location\":[110.171952258895,26.634041662558673],\"label\":\"地点18\"},{\"location\":[115.8448933111382,23.54815276404898],\"label\":\"地点19\"},{\"location\":[116.02304124796807,21.709748624584844],\"label\":\"地点20\"},{\"location\":[113.12853794097401,33.03982301404611],\"label\":\"地点21\"},{\"location\":[119.60854587796597,30.863627023683417],\"label\":\"地点22\"},{\"location\":[114.93154191706749,21.527490969421585],\"label\":\"地点23\"},{\"location\":[115.87161560707945,22.055750441144387],\"label\":\"地点24\"},{\"location\":[119.1834132297252,21.453143624276564],\"label\":\"地点25\"},{\"location\":[110.5672776574152,29.275646563747742],\"label\":\"地点26\"},{\"location\":[118.7822263692786,33.98312192573509],\"label\":\"地点27\"},{\"location\":[115.87282251650592,20.04595602078262],\"label\":\"地点28\"},{\"location\":[119.48632763831897,21.779162746145616],\"label\":\"地点29\"},{\"location\":[117.83222215260886,31.27790943705657],\"label\":\"地点30\"},{\"location\":[117.50861499809174,29.562051245758692],\"label\":\"地点31\"},{\"location\":[117.57300929557461,30.22863232876903],\"label\":\"地点32\"},{\"location\":[116.72063680022808,20.9976352630688],\"label\":\"地点33\"},{\"location\":[112.47288883789084,29.630130897776514],\"label\":\"地点34\"},{\"location\":[113.27376578400178,28.55514060881975],\"label\":\"地点35\"},{\"location\":[113.04194396392222,25.45605572009377],\"label\":\"地点36\"},{\"location\":[114.81975247910233,24.531741294705554],\"label\":\"地点37\"},{\"location\":[112.75519900368892,29.729042075354915],\"label\":\"地点38\"},{\"location\":[116.48559722370688,34.75118216889847],\"label\":\"地点39\"},{\"location\":[114.74259393584092,27.773227733572373],\"label\":\"地点40\"},{\"location\":[116.8875662124438,24.900355464919176],\"label\":\"地点41\"},{\"location\":[115.42126585371302,29.134794342531695],\"label\":\"地点42\"},{\"location\":[114.32615816392456,30.554582337883033],\"label\":\"地点43\"},{\"location\":[113.11329553451985,20.719595494450076],\"label\":\"地点44\"},{\"location\":[117.59954632014315,34.239941074975675],\"label\":\"地点45\"},{\"location\":[110.56072145615914,27.354553645810604],\"label\":\"地点46\"},{\"location\":[112.56678604716846,29.31468719700257],\"label\":\"地点47\"},{\"location\":[112.46179685127596,29.555298110449872],\"label\":\"地点48\"},{\"location\":[119.51262406807908,33.783866285762784],\"label\":\"地点49\"},{\"location\":[114.79156659016105,28.622071761852016],\"label\":\"地点50\"},{\"location\":[112.3734436431283,23.433890194817565],\"label\":\"地点51\"},{\"location\":[116.3345809487908,34.08363653992851],\"label\":\"地点52\"},{\"location\":[112.58970029764689,33.12934932777892],\"label\":\"地点53\"},{\"location\":[116.1819782671725,31.61486396858201],\"label\":\"地点54\"},{\"location\":[110.23268385580975,24.657453089226266],\"label\":\"地点55\"},{\"location\":[110.37979926126394,28.744019365383156],\"label\":\"地点56\"},{\"location\":[115.23803246479582,27.605796290235823],\"label\":\"地点57\"},{\"location\":[115.99601819482372,25.12051638091197],\"label\":\"地点58\"},{\"location\":[111.92421197597506,20.237762421737322],\"label\":\"地点59\"},{\"location\":[114.4381252155636,31.294903233704325],\"label\":\"地点60\"},{\"location\":[114.40278262801876,33.41085254614559],\"label\":\"地点61\"},{\"location\":[118.6497453284444,24.91996243462354],\"label\":\"地点62\"},{\"location\":[112.8252467829329,29.71776260871627],\"label\":\"地点63\"},{\"location\":[111.70055123982434,30.37760838377917],\"label\":\"地点64\"},{\"location\":[112.2908623525636,20.636608908358827],\"label\":\"地点65\"},{\"location\":[116.29913159285731,21.117647387286883],\"label\":\"地点66\"},{\"location\":[110.64997748910217,30.632978762384635],\"label\":\"地点67\"},{\"location\":[115.03551142849408,28.76166753538753],\"label\":\"地点68\"},{\"location\":[118.16828223169694,27.86560075368348],\"label\":\"地点69\"},{\"location\":[116.64388416894342,23.732889431625605],\"label\":\"地点70\"},{\"location\":[117.01716202317607,26.411745335085847],\"label\":\"地点71\"},{\"location\":[119.0528502736986,30.975780240157185],\"label\":\"地点72\"},{\"location\":[111.62098581870485,24.20961231434314],\"label\":\"地点73\"},{\"location\":[112.90681498498914,23.40462485091016],\"label\":\"地点74\"},{\"location\":[113.87290725172237,27.957210905982787],\"label\":\"地点75\"},{\"location\":[111.4351281539321,26.067394202010092],\"label\":\"地点76\"},{\"location\":[112.17865402329603,23.459726725155463],\"label\":\"地点77\"},{\"location\":[118.6067805466999,20.430889502284213],\"label\":\"地点78\"},{\"location\":[119.86100215229368,22.606302215596465],\"label\":\"地点79\"},{\"location\":[112.58061715449392,31.142494941046696],\"label\":\"地点80\"},{\"location\":[118.6902238533758,30.741504740446324],\"label\":\"地点81\"},{\"location\":[112.5477506596301,25.031569551508312],\"label\":\"地点82\"},{\"location\":[119.21276211388378,33.69532765635268],\"label\":\"地点83\"},{\"location\":[114.07547642575129,27.453785530612798],\"label\":\"地点84\"},{\"location\":[110.41265620827224,31.98931823405719],\"label\":\"地点85\"},{\"location\":[112.15414159544264,30.707017721158167],\"label\":\"地点86\"},{\"location\":[119.38755922857605,24.47340078670114],\"label\":\"地点87\"},{\"location\":[111.72098564265526,27.365719272041805],\"label\":\"地点88\"},{\"location\":[115.71930618872699,25.470868999884143],\"label\":\"地点89\"},{\"location\":[116.7633609569867,27.900665635285762],\"label\":\"地点90\"},{\"location\":[110.64906147977024,25.72070294929258],\"label\":\"地点91\"},{\"location\":[118.74245248242234,28.331578115698314],\"label\":\"地点92\"},{\"location\":[117.98769547377907,30.610126792564532],\"label\":\"地点93\"},{\"location\":[119.00204494179899,21.648573833072902],\"label\":\"地点94\"},{\"location\":[116.6179613174326,25.600266308896597],\"label\":\"地点95\"},{\"location\":[116.5858571156058,29.268767376052487],\"label\":\"地点96\"},{\"location\":[114.05339159745577,21.567441619727603],\"label\":\"地点97\"},{\"location\":[119.02419400402812,23.944254060602287],\"label\":\"地点98\"},{\"location\":[114.55328204095066,33.2515212933515],\"label\":\"地点99\"}]", + "response": "{\"type\":\"scattermapbox\",\"data\":[{\"type\":\"scattermapbox\",\"mode\":\"markers\",\"lat\":[31.642057818776458,25.44182161311131,28.854136284319846,33.76337404275215,24.414577719850275,23.032615845961896,26.95140254832114,29.748647614880234,23.335493591915366,22.559312503534162,31.391042320159954,30.201392294061584,30.85050724209843,25.055439410096554,33.06889758156362,27.483795665064218,26.74336401419719,28.086843116493437,26.634041662558673,23.54815276404898,21.709748624584844,33.03982301404611,30.863627023683417,21.527490969421585,22.055750441144387,21.453143624276564,29.275646563747742,33.98312192573509,20.04595602078262,21.779162746145616,31.27790943705657,29.562051245758692,30.22863232876903,20.9976352630688,29.630130897776514,28.55514060881975,25.45605572009377,24.531741294705554,29.729042075354915,34.75118216889847,27.773227733572373,24.900355464919176,29.134794342531695,30.554582337883033,20.719595494450076,34.239941074975675,27.354553645810604,29.31468719700257,29.555298110449872,33.783866285762784,28.622071761852016,23.433890194817565,34.08363653992851,33.12934932777892,31.61486396858201,24.657453089226266,28.744019365383156,27.605796290235823,25.12051638091197,20.237762421737322,31.294903233704325,33.41085254614559,24.91996243462354,29.71776260871627,30.37760838377917,20.636608908358827,21.117647387286883,30.632978762384635,28.76166753538753,27.86560075368348,23.732889431625605,26.411745335085847,30.975780240157185,24.20961231434314,23.40462485091016,27.957210905982787,26.067394202010092,23.459726725155463,20.430889502284213,22.606302215596465,31.142494941046696,30.741504740446324,25.031569551508312,33.69532765635268,27.453785530612798,31.98931823405719,30.707017721158167,24.47340078670114,27.365719272041805,25.470868999884143,27.900665635285762,25.72070294929258,28.331578115698314,30.610126792564532,21.648573833072902,25.600266308896597,29.268767376052487,21.567441619727603,23.944254060602287,33.2515212933515],\"lon\":[118.8250735692687,116.35963740559384,111.8009517344015,118.67776084284216,114.29123919967434,117.94611326373709,113.3168157016098,112.06895481207954,116.62362603", + "answer": "{\"type\":\"pin-map\",\"data\":[{\"label\":\"地点0\",\"longitude\":118.8250735692687,\"latitude\":31.642057818776458},{\"label\":\"地点1\",\"longitude\":116.35963740559384,\"latitude\":25.44182161311131},{\"label\":\"地点2\",\"longitude\":111.8009517344015,\"latitude\":28.854136284319846},{\"label\":\"地点3\",\"longitude\":118.67776084284216,\"latitude\":33.76337404275215},{\"label\":\"地点4\",\"longitude\":114.29123919967434,\"latitude\":24.414577719850275},{\"label\":\"地点5\",\"longitude\":117.94611326373709,\"latitude\":23.032615845961896},{\"label\":\"地点6\",\"longitude\":113.3168157016098,\"latitude\":26.95140254832114},{\"label\":\"地点7\",\"longitude\":112.06895481207954,\"latitude\":29.748647614880234},{\"label\":\"地点8\",\"longitude\":116.62362603019055,\"latitude\":23.335493591915366},{\"label\":\"地点9\",\"longitude\":113.49028680542455,\"latitude\":22.559312503534162},{\"label\":\"地点10\",\"longitude\":114.87564808756434,\"latitude\":31.391042320159954},{\"label\":\"地点11\",\"longitude\":114.89412398985762,\"latitude\":30.201392294061584},{\"label\":\"地点12\",\"longitude\":113.89802895767895,\"latitude\":30.85050724209843},{\"label\":\"地点13\",\"longitude\":113.07372758301653,\"latitude\":25.055439410096554},{\"label\":\"地点14\",\"longitude\":117.87693836402863,\"latitude\":33.06889758156362},{\"label\":\"地点15\",\"longitude\":112.56720702667444,\"latitude\":27.483795665064218},{\"label\":\"地点16\",\"longitude\":114.39252770715945,\"latitude\":26.74336401419719},{\"label\":\"地点17\",\"longitude\":115.47100133921353,\"latitude\":28.086843116493437},{\"label\":\"地点18\",\"longitude\":110.171952258895,\"latitude\":26.634041662558673},{\"label\":\"地点19\",\"longitude\":115.8448933111382,\"latitude\":23.54815276404898},{\"label\":\"地点20\",\"longitude\":116.02304124796807,\"latitude\":21.709748624584844},{\"label\":\"地点21\",\"longitude\":113.12853794097401,\"latitude\":33.03982301404611},{\"label\":\"地点22\",\"longitude\":119.60854587796597,\"latitude\":30.863627023683417},{\"label\":\"地点23\",\"longitude\":114.93154191706749,\"latitude\":21.527490969421585},{\"label\":\"地点24\",\"longitude\":115.87161560707945,\"latitude\":22.055750441144387},{\"label\":\"地点25\",\"longitude\":119.1834132297252,\"latitude\":21.453143624276564},{\"label\":\"地点26\",\"longitude\":110.5672776574152,\"latitude\":29.275646563747742},{\"label\":\"地点27\",\"longitude\":118.7822263692786,\"latitude\":33.98312192573509},{\"label\":\"地点28\",\"longitude\":115.87282251650592,\"latitude\":20.04595602078262},{\"label\":\"地点29\",\"longitude\":119.48632763831897,\"latitude\":21.779162746145616},{\"label\":\"地点30\",\"longitude\":117.83222215260886,\"latitude\":31.27790943705657},{\"label\":\"地点31\",\"longitude\":117.50861499809174,\"latitude\":29.562051245758692},{\"label\":\"地点32\",\"longitude\":117.57300929557461,\"latitude\":30.22863232876903},{\"label\":\"地点33\",\"longitude\":116.72063680022808,\"latitude\":20.9976352630688},{\"label\":\"地点34\",\"longitude\":112.47288883789084,\"latitude\":29.630130897776514},{\"label\":\"地点35\",\"longitude\":113.27376578400178,\"latitude\":28.55514060881975},{\"label\":\"地点36\",\"longitude\":113.04194396392222,\"latitude\":25.45605572009377},{\"label\":\"地点37\",\"longitude\":114.81975247910233,\"latitude\":24.531741294705554},{\"label\":\"地点38\",\"longitude\":112.75519900368892,\"latitude\":29.729042075354915},{\"label\":\"地点39\",\"longitude\":116.48559722370688,\"latitude\":34.75118216889847},{\"label\":\"地点40\",\"longitude\":114.74259393584092,\"latitude\":27.773227733572373},{\"label\":\"地点41\",\"longitude\":116.8875662124438,\"latitude\":24.900355464919176},{\"label\":\"地点42\",\"longitude\":115.42126585371302,\"latitude\":29.134794342531695},{\"label\":\"地点43\",\"longitude\":114.32615816392456,\"latitude\":30.554582337883033},{\"label\":\"地点44\",\"longitude\":113.11329553451985,\"latitude\":20.719595494450076},{\"label\":\"地点45\",\"longitude\":117.59954632014315,\"latitude\":34.239941074975675},{\"label\":\"地点46\",\"longitude\":110.56072145615914,\"latitude\":27.354553645810604},{\"label\":\"地点47\",\"longitude\":112.56678604716846,\"latitude\":29.31468719700257},{\"label\":\"地点48\",\"longitude\":112.46179685127596,\"latitude\":29.555298110449872},{\"label\":\"地点49\",\"longitude\":119.51262406807908,\"latitude\":33.783866285762784},{\"label\":\"地点50\",\"longitude\":114.79156659016105,\"latitude\":28.622071761852016},{\"label\":\"地点51\",\"longitude\":112.3734436431283,\"latitude\":23.433890194817565},{\"label\":\"地点52\",\"longitude\":116.3345809487908,\"latitude\":34.08363653992851},{\"label\":\"地点53\",\"longitude\":112.58970029764689,\"latitude\":33.12934932777892},{\"label\":\"地点54\",\"longitude\":116.1819782671725,\"latitude\":31.61486396858201},{\"label\":\"地点55\",\"longitude\":110.23268385580975,\"latitude\":24.657453089226266},{\"label\":\"地点56\",\"longitude\":110.37979926126394,\"latitude\":28.744019365383156},{\"label\":\"地点57\",\"longitude\":115.23803246479582,\"latitude\":27.605796290235823},{\"label\":\"地点58\",\"longitude\":115.99601819482372,\"latitude\":25.12051638091197},{\"label\":\"地点59\",\"longitude\":111.92421197597506,\"latitude\":20.237762421737322},{\"label\":\"地点60\",\"longitude\":114.4381252155636,\"latitude\":31.294903233704325},{\"label\":\"地点61\",\"longitude\":114.40278262801876,\"latitude\":33.41085254614559},{\"label\":\"地点62\",\"longitude\":118.6497453284444,\"latitude\":24.91996243462354},{\"label\":\"地点63\",\"longitude\":112.8252467829329,\"latitude\":29.71776260871627},{\"label\":\"地点64\",\"longitude\":111.70055123982434,\"latitude\":30.37760838377917},{\"label\":\"地点65\",\"longitude\":112.2908623525636,\"latitude\":20.636608908358827},{\"label\":\"地点66\",\"longitude\":116.29913159285731,\"latitude\":21.117647387286883},{\"label\":\"地点67\",\"longitude\":110.64997748910217,\"latitude\":30.632978762384635},{\"label\":\"地点68\",\"longitude\":115.03551142849408,\"latitude\":28.76166753538753},{\"label\":\"地点69\",\"longitude\":118.16828223169694,\"latitude\":27.86560075368348},{\"label\":\"地点70\",\"longitude\":116.64388416894342,\"latitude\":23.732889431625605},{\"label\":\"地点71\",\"longitude\":117.01716202317607,\"latitude\":26.411745335085847},{\"label\":\"地点72\",\"longitude\":119.0528502736986,\"latitude\":30.975780240157185},{\"label\":\"地点73\",\"longitude\":111.62098581870485,\"latitude\":24.20961231434314},{\"label\":\"地点74\",\"longitude\":112.90681498498914,\"latitude\":23.40462485091016},{\"label\":\"地点75\",\"longitude\":113.87290725172237,\"latitude\":27.957210905982787},{\"label\":\"地点76\",\"longitude\":111.4351281539321,\"latitude\":26.067394202010092},{\"label\":\"地点77\",\"longitude\":112.17865402329603,\"latitude\":23.459726725155463},{\"label\":\"地点78\",\"longitude\":118.6067805466999,\"latitude\":20.430889502284213},{\"label\":\"地点79\",\"longitude\":119.86100215229368,\"latitude\":22.606302215596465},{\"label\":\"地点80\",\"longitude\":112.58061715449392,\"latitude\":31.142494941046696},{\"label\":\"地点81\",\"longitude\":118.6902238533758,\"latitude\":30.741504740446324},{\"label\":\"地点82\",\"longitude\":112.5477506596301,\"latitude\":25.031569551508312},{\"label\":\"地点83\",\"longitude\":119.21276211388378,\"latitude\":33.69532765635268},{\"label\":\"地点84\",\"longitude\":114.07547642575129,\"latitude\":27.453785530612798},{\"label\":\"地点85\",\"longitude\":110.41265620827224,\"latitude\":31.98931823405719},{\"label\":\"地点86\",\"longitude\":112.15414159544264,\"latitude\":30.707017721158167},{\"label\":\"地点87\",\"longitude\":119.38755922857605,\"latitude\":24.47340078670114},{\"label\":\"地点88\",\"longitude\":111.72098564265526,\"latitude\":27.365719272041805},{\"label\":\"地点89\",\"longitude\":115.71930618872699,\"latitude\":25.470868999884143},{\"label\":\"地点90\",\"longitude\":116.7633609569867,\"latitude\":27.900665635285762},{\"label\":\"地点91\",\"longitude\":110.64906147977024,\"latitude\":25.72070294929258},{\"label\":\"地点92\",\"longitude\":118.74245248242234,\"latitude\":28.331578115698314},{\"label\":\"地点93\",\"longitude\":117.98769547377907,\"latitude\":30.610126792564532},{\"label\":\"地点94\",\"longitude\":119.00204494179899,\"latitude\":21.648573833072902},{\"label\":\"地点95\",\"longitude\":116.6179613174326,\"latitude\":25.600266308896597},{\"label\":\"地点96\",\"longitude\":116.5858571156058,\"latitude\":29.268767376052487},{\"label\":\"地点97\",\"longitude\":114.05339159745577,\"latitude\":21.567441619727603},{\"label\":\"地点98\",\"longitude\":119.02419400402812,\"latitude\":23.944254060602287},{\"label\":\"地点99\",\"longitude\":114.55328204095066,\"latitude\":33.2515212933515}]}", + "reference": [], + "correctness": 0 + } +] diff --git a/evaluations/datastes/chart/pin-map/test.json b/evaluations/datastes/chart/pin-map/test.json new file mode 100644 index 0000000..f26847b --- /dev/null +++ b/evaluations/datastes/chart/pin-map/test.json @@ -0,0 +1,650 @@ +[ + { + "type": "text2chart", + "question": "在地图上标注我最喜欢的旅游目的地:北京、西安和成都。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 116.4074, "latitude": 39.9042, "label": "北京" }, + { "longitude": 108.9482, "latitude": 34.2625, "label": "西安" }, + { "longitude": 104.0665, "latitude": 30.6589, "label": "成都" } + ] + } + }, + { + "type": "text2chart", + "question": "请在地图上标出中国四大名山的位置。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 117.4829, "latitude": 35.7132, "label": "泰山" }, + { "longitude": 110.4757, "latitude": 29.5132, "label": "衡山" }, + { "longitude": 103.7533, "latitude": 34.3877, "label": "华山" }, + { "longitude": 103.7234, "latitude": 30.661, "label": "峨眉山" } + ] + } + }, + { + "type": "text2chart", + "question": "用点标注地图表示我国五个重要的港口城市。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海港" }, + { "longitude": 113.2308, "latitude": 23.1305, "label": "广州港" }, + { "longitude": 119.2942, "latitude": 26.075, "label": "厦门港" }, + { "longitude": 120.1535, "latitude": 30.2875, "label": "宁波舟山港" }, + { "longitude": 114.1717, "latitude": 22.2855, "label": "深圳港" } + ] + } + }, + { + "type": "text2chart", + "question": "展示一下长江沿岸的主要城市(重庆、武汉、南京、上海)分布情况。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 106.5428, "latitude": 29.563, "label": "重庆" }, + { "longitude": 114.3055, "latitude": 30.5167, "label": "武汉" }, + { "longitude": 118.7968, "latitude": 32.0617, "label": "南京" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] + } + }, + { + "question": "展示中国四大古都的地理位置。", + "answer": { + "type": "pin-map", + "data": [ + { + "longitude": 114.3087, + "latitude": 33.6272, + "label": "西安" + }, + { + "longitude": 113.2644, + "latitude": 34.7519, + "label": "洛阳" + }, + { + "longitude": 116.4074, + "latitude": 39.9042, + "label": "北京" + }, + { + "longitude": 108.9503, + "latitude": 34.2658, + "label": "南京" + } + ] + } + }, + + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [40.712776, -74.005974], \"label\": \"纽约\", \"information\": \"美国人口最多的城市\" },{ \"location\": [34.052235, -118.243683], \"label\": \"洛杉矶\", \"information\": \"以好莱坞闻名\" }]", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": -74.005974, "latitude": 40.712776, "label": "纽约" }, + { "longitude": -118.243683, "latitude": 34.052235, "label": "洛杉矶" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [35.689487, 139.691711], \"label\": \"东京\", \"information\": \"日本的首都\" },{ \"location\": [34.693737, 135.502167], \"label\": \"大阪\", \"information\": \"日本第二大都市区\" }]", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 139.691711, "latitude": 35.689487, "label": "东京" }, + { "longitude": 135.502167, "latitude": 34.693737, "label": "大阪" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" }]。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 116.3974, "latitude": 39.9087, "label": "北京" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" }, + { "longitude": 113.2644, "latitude": 23.1291, "label": "广州" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [118.784767, 32.044283], \"label\": \"南京\", \"information\": \"六朝古都\" },{ \"location\": [120.153576, 30.287459], \"label\": \"杭州\", \"information\": \"美丽的西湖所在的城市\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" }]。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 118.784767, "latitude": 32.044283, "label": "南京" }, + { "longitude": 120.153576, "latitude": 30.287459, "label": "杭州" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [113.2644, 23.1291], \"label\": \"广州\", \"information\": \"华南重要城市\" },{ \"location\": [114.057868, 22.543079], \"label\": \"深圳\", \"information\": \"中国改革开放的窗口\" }]。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 116.3974, "latitude": 39.9087, "label": "北京" }, + { "longitude": 113.2644, "latitude": 23.1291, "label": "广州" }, + { "longitude": 114.057868, "latitude": 22.543079, "label": "深圳" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据:[{\"location\":[118.8250735692687,31.642057818776458],\"label\":\"地点0\"},{\"location\":[116.35963740559384,25.44182161311131],\"label\":\"地点1\"},{\"location\":[111.8009517344015,28.854136284319846],\"label\":\"地点2\"},{\"location\":[118.67776084284216,33.76337404275215],\"label\":\"地点3\"},{\"location\":[114.29123919967434,24.414577719850275],\"label\":\"地点4\"},{\"location\":[117.94611326373709,23.032615845961896],\"label\":\"地点5\"},{\"location\":[113.3168157016098,26.95140254832114],\"label\":\"地点6\"},{\"location\":[112.06895481207954,29.748647614880234],\"label\":\"地点7\"},{\"location\":[116.62362603019055,23.335493591915366],\"label\":\"地点8\"},{\"location\":[113.49028680542455,22.559312503534162],\"label\":\"地点9\"},{\"location\":[114.87564808756434,31.391042320159954],\"label\":\"地点10\"},{\"location\":[114.89412398985762,30.201392294061584],\"label\":\"地点11\"},{\"location\":[113.89802895767895,30.85050724209843],\"label\":\"地点12\"},{\"location\":[113.07372758301653,25.055439410096554],\"label\":\"地点13\"},{\"location\":[117.87693836402863,33.06889758156362],\"label\":\"地点14\"},{\"location\":[112.56720702667444,27.483795665064218],\"label\":\"地点15\"},{\"location\":[114.39252770715945,26.74336401419719],\"label\":\"地点16\"},{\"location\":[115.47100133921353,28.086843116493437],\"label\":\"地点17\"},{\"location\":[110.171952258895,26.634041662558673],\"label\":\"地点18\"},{\"location\":[115.8448933111382,23.54815276404898],\"label\":\"地点19\"},{\"location\":[116.02304124796807,21.709748624584844],\"label\":\"地点20\"},{\"location\":[113.12853794097401,33.03982301404611],\"label\":\"地点21\"},{\"location\":[119.60854587796597,30.863627023683417],\"label\":\"地点22\"},{\"location\":[114.93154191706749,21.527490969421585],\"label\":\"地点23\"},{\"location\":[115.87161560707945,22.055750441144387],\"label\":\"地点24\"},{\"location\":[119.1834132297252,21.453143624276564],\"label\":\"地点25\"},{\"location\":[110.5672776574152,29.275646563747742],\"label\":\"地点26\"},{\"location\":[118.7822263692786,33.98312192573509],\"label\":\"地点27\"},{\"location\":[115.87282251650592,20.04595602078262],\"label\":\"地点28\"},{\"location\":[119.48632763831897,21.779162746145616],\"label\":\"地点29\"},{\"location\":[117.83222215260886,31.27790943705657],\"label\":\"地点30\"},{\"location\":[117.50861499809174,29.562051245758692],\"label\":\"地点31\"},{\"location\":[117.57300929557461,30.22863232876903],\"label\":\"地点32\"},{\"location\":[116.72063680022808,20.9976352630688],\"label\":\"地点33\"},{\"location\":[112.47288883789084,29.630130897776514],\"label\":\"地点34\"},{\"location\":[113.27376578400178,28.55514060881975],\"label\":\"地点35\"},{\"location\":[113.04194396392222,25.45605572009377],\"label\":\"地点36\"},{\"location\":[114.81975247910233,24.531741294705554],\"label\":\"地点37\"},{\"location\":[112.75519900368892,29.729042075354915],\"label\":\"地点38\"},{\"location\":[116.48559722370688,34.75118216889847],\"label\":\"地点39\"},{\"location\":[114.74259393584092,27.773227733572373],\"label\":\"地点40\"},{\"location\":[116.8875662124438,24.900355464919176],\"label\":\"地点41\"},{\"location\":[115.42126585371302,29.134794342531695],\"label\":\"地点42\"},{\"location\":[114.32615816392456,30.554582337883033],\"label\":\"地点43\"},{\"location\":[113.11329553451985,20.719595494450076],\"label\":\"地点44\"},{\"location\":[117.59954632014315,34.239941074975675],\"label\":\"地点45\"},{\"location\":[110.56072145615914,27.354553645810604],\"label\":\"地点46\"},{\"location\":[112.56678604716846,29.31468719700257],\"label\":\"地点47\"},{\"location\":[112.46179685127596,29.555298110449872],\"label\":\"地点48\"},{\"location\":[119.51262406807908,33.783866285762784],\"label\":\"地点49\"},{\"location\":[114.79156659016105,28.622071761852016],\"label\":\"地点50\"},{\"location\":[112.3734436431283,23.433890194817565],\"label\":\"地点51\"},{\"location\":[116.3345809487908,34.08363653992851],\"label\":\"地点52\"},{\"location\":[112.58970029764689,33.12934932777892],\"label\":\"地点53\"},{\"location\":[116.1819782671725,31.61486396858201],\"label\":\"地点54\"},{\"location\":[110.23268385580975,24.657453089226266],\"label\":\"地点55\"},{\"location\":[110.37979926126394,28.744019365383156],\"label\":\"地点56\"},{\"location\":[115.23803246479582,27.605796290235823],\"label\":\"地点57\"},{\"location\":[115.99601819482372,25.12051638091197],\"label\":\"地点58\"},{\"location\":[111.92421197597506,20.237762421737322],\"label\":\"地点59\"},{\"location\":[114.4381252155636,31.294903233704325],\"label\":\"地点60\"},{\"location\":[114.40278262801876,33.41085254614559],\"label\":\"地点61\"},{\"location\":[118.6497453284444,24.91996243462354],\"label\":\"地点62\"},{\"location\":[112.8252467829329,29.71776260871627],\"label\":\"地点63\"},{\"location\":[111.70055123982434,30.37760838377917],\"label\":\"地点64\"},{\"location\":[112.2908623525636,20.636608908358827],\"label\":\"地点65\"},{\"location\":[116.29913159285731,21.117647387286883],\"label\":\"地点66\"},{\"location\":[110.64997748910217,30.632978762384635],\"label\":\"地点67\"},{\"location\":[115.03551142849408,28.76166753538753],\"label\":\"地点68\"},{\"location\":[118.16828223169694,27.86560075368348],\"label\":\"地点69\"},{\"location\":[116.64388416894342,23.732889431625605],\"label\":\"地点70\"},{\"location\":[117.01716202317607,26.411745335085847],\"label\":\"地点71\"},{\"location\":[119.0528502736986,30.975780240157185],\"label\":\"地点72\"},{\"location\":[111.62098581870485,24.20961231434314],\"label\":\"地点73\"},{\"location\":[112.90681498498914,23.40462485091016],\"label\":\"地点74\"},{\"location\":[113.87290725172237,27.957210905982787],\"label\":\"地点75\"},{\"location\":[111.4351281539321,26.067394202010092],\"label\":\"地点76\"},{\"location\":[112.17865402329603,23.459726725155463],\"label\":\"地点77\"},{\"location\":[118.6067805466999,20.430889502284213],\"label\":\"地点78\"},{\"location\":[119.86100215229368,22.606302215596465],\"label\":\"地点79\"},{\"location\":[112.58061715449392,31.142494941046696],\"label\":\"地点80\"},{\"location\":[118.6902238533758,30.741504740446324],\"label\":\"地点81\"},{\"location\":[112.5477506596301,25.031569551508312],\"label\":\"地点82\"},{\"location\":[119.21276211388378,33.69532765635268],\"label\":\"地点83\"},{\"location\":[114.07547642575129,27.453785530612798],\"label\":\"地点84\"},{\"location\":[110.41265620827224,31.98931823405719],\"label\":\"地点85\"},{\"location\":[112.15414159544264,30.707017721158167],\"label\":\"地点86\"},{\"location\":[119.38755922857605,24.47340078670114],\"label\":\"地点87\"},{\"location\":[111.72098564265526,27.365719272041805],\"label\":\"地点88\"},{\"location\":[115.71930618872699,25.470868999884143],\"label\":\"地点89\"},{\"location\":[116.7633609569867,27.900665635285762],\"label\":\"地点90\"},{\"location\":[110.64906147977024,25.72070294929258],\"label\":\"地点91\"},{\"location\":[118.74245248242234,28.331578115698314],\"label\":\"地点92\"},{\"location\":[117.98769547377907,30.610126792564532],\"label\":\"地点93\"},{\"location\":[119.00204494179899,21.648573833072902],\"label\":\"地点94\"},{\"location\":[116.6179613174326,25.600266308896597],\"label\":\"地点95\"},{\"location\":[116.5858571156058,29.268767376052487],\"label\":\"地点96\"},{\"location\":[114.05339159745577,21.567441619727603],\"label\":\"地点97\"},{\"location\":[119.02419400402812,23.944254060602287],\"label\":\"地点98\"},{\"location\":[114.55328204095066,33.2515212933515],\"label\":\"地点99\"}]", + "answer": { + "type": "pin-map", + "data": [ + { + "label": "地点0", + "longitude": 118.8250735692687, + "latitude": 31.642057818776458 + }, + { + "label": "地点1", + "longitude": 116.35963740559384, + "latitude": 25.44182161311131 + }, + { + "label": "地点2", + "longitude": 111.8009517344015, + "latitude": 28.854136284319846 + }, + { + "label": "地点3", + "longitude": 118.67776084284216, + "latitude": 33.76337404275215 + }, + { + "label": "地点4", + "longitude": 114.29123919967434, + "latitude": 24.414577719850275 + }, + { + "label": "地点5", + "longitude": 117.94611326373709, + "latitude": 23.032615845961896 + }, + { + "label": "地点6", + "longitude": 113.3168157016098, + "latitude": 26.95140254832114 + }, + { + "label": "地点7", + "longitude": 112.06895481207954, + "latitude": 29.748647614880234 + }, + { + "label": "地点8", + "longitude": 116.62362603019055, + "latitude": 23.335493591915366 + }, + { + "label": "地点9", + "longitude": 113.49028680542455, + "latitude": 22.559312503534162 + }, + { + "label": "地点10", + "longitude": 114.87564808756434, + "latitude": 31.391042320159954 + }, + { + "label": "地点11", + "longitude": 114.89412398985762, + "latitude": 30.201392294061584 + }, + { + "label": "地点12", + "longitude": 113.89802895767895, + "latitude": 30.85050724209843 + }, + { + "label": "地点13", + "longitude": 113.07372758301653, + "latitude": 25.055439410096554 + }, + { + "label": "地点14", + "longitude": 117.87693836402863, + "latitude": 33.06889758156362 + }, + { + "label": "地点15", + "longitude": 112.56720702667444, + "latitude": 27.483795665064218 + }, + { + "label": "地点16", + "longitude": 114.39252770715945, + "latitude": 26.74336401419719 + }, + { + "label": "地点17", + "longitude": 115.47100133921353, + "latitude": 28.086843116493437 + }, + { + "label": "地点18", + "longitude": 110.171952258895, + "latitude": 26.634041662558673 + }, + { + "label": "地点19", + "longitude": 115.8448933111382, + "latitude": 23.54815276404898 + }, + { + "label": "地点20", + "longitude": 116.02304124796807, + "latitude": 21.709748624584844 + }, + { + "label": "地点21", + "longitude": 113.12853794097401, + "latitude": 33.03982301404611 + }, + { + "label": "地点22", + "longitude": 119.60854587796597, + "latitude": 30.863627023683417 + }, + { + "label": "地点23", + "longitude": 114.93154191706749, + "latitude": 21.527490969421585 + }, + { + "label": "地点24", + "longitude": 115.87161560707945, + "latitude": 22.055750441144387 + }, + { + "label": "地点25", + "longitude": 119.1834132297252, + "latitude": 21.453143624276564 + }, + { + "label": "地点26", + "longitude": 110.5672776574152, + "latitude": 29.275646563747742 + }, + { + "label": "地点27", + "longitude": 118.7822263692786, + "latitude": 33.98312192573509 + }, + { + "label": "地点28", + "longitude": 115.87282251650592, + "latitude": 20.04595602078262 + }, + { + "label": "地点29", + "longitude": 119.48632763831897, + "latitude": 21.779162746145616 + }, + { + "label": "地点30", + "longitude": 117.83222215260886, + "latitude": 31.27790943705657 + }, + { + "label": "地点31", + "longitude": 117.50861499809174, + "latitude": 29.562051245758692 + }, + { + "label": "地点32", + "longitude": 117.57300929557461, + "latitude": 30.22863232876903 + }, + { + "label": "地点33", + "longitude": 116.72063680022808, + "latitude": 20.9976352630688 + }, + { + "label": "地点34", + "longitude": 112.47288883789084, + "latitude": 29.630130897776514 + }, + { + "label": "地点35", + "longitude": 113.27376578400178, + "latitude": 28.55514060881975 + }, + { + "label": "地点36", + "longitude": 113.04194396392222, + "latitude": 25.45605572009377 + }, + { + "label": "地点37", + "longitude": 114.81975247910233, + "latitude": 24.531741294705554 + }, + { + "label": "地点38", + "longitude": 112.75519900368892, + "latitude": 29.729042075354915 + }, + { + "label": "地点39", + "longitude": 116.48559722370688, + "latitude": 34.75118216889847 + }, + { + "label": "地点40", + "longitude": 114.74259393584092, + "latitude": 27.773227733572373 + }, + { + "label": "地点41", + "longitude": 116.8875662124438, + "latitude": 24.900355464919176 + }, + { + "label": "地点42", + "longitude": 115.42126585371302, + "latitude": 29.134794342531695 + }, + { + "label": "地点43", + "longitude": 114.32615816392456, + "latitude": 30.554582337883033 + }, + { + "label": "地点44", + "longitude": 113.11329553451985, + "latitude": 20.719595494450076 + }, + { + "label": "地点45", + "longitude": 117.59954632014315, + "latitude": 34.239941074975675 + }, + { + "label": "地点46", + "longitude": 110.56072145615914, + "latitude": 27.354553645810604 + }, + { + "label": "地点47", + "longitude": 112.56678604716846, + "latitude": 29.31468719700257 + }, + { + "label": "地点48", + "longitude": 112.46179685127596, + "latitude": 29.555298110449872 + }, + { + "label": "地点49", + "longitude": 119.51262406807908, + "latitude": 33.783866285762784 + }, + { + "label": "地点50", + "longitude": 114.79156659016105, + "latitude": 28.622071761852016 + }, + { + "label": "地点51", + "longitude": 112.3734436431283, + "latitude": 23.433890194817565 + }, + { + "label": "地点52", + "longitude": 116.3345809487908, + "latitude": 34.08363653992851 + }, + { + "label": "地点53", + "longitude": 112.58970029764689, + "latitude": 33.12934932777892 + }, + { + "label": "地点54", + "longitude": 116.1819782671725, + "latitude": 31.61486396858201 + }, + { + "label": "地点55", + "longitude": 110.23268385580975, + "latitude": 24.657453089226266 + }, + { + "label": "地点56", + "longitude": 110.37979926126394, + "latitude": 28.744019365383156 + }, + { + "label": "地点57", + "longitude": 115.23803246479582, + "latitude": 27.605796290235823 + }, + { + "label": "地点58", + "longitude": 115.99601819482372, + "latitude": 25.12051638091197 + }, + { + "label": "地点59", + "longitude": 111.92421197597506, + "latitude": 20.237762421737322 + }, + { + "label": "地点60", + "longitude": 114.4381252155636, + "latitude": 31.294903233704325 + }, + { + "label": "地点61", + "longitude": 114.40278262801876, + "latitude": 33.41085254614559 + }, + { + "label": "地点62", + "longitude": 118.6497453284444, + "latitude": 24.91996243462354 + }, + { + "label": "地点63", + "longitude": 112.8252467829329, + "latitude": 29.71776260871627 + }, + { + "label": "地点64", + "longitude": 111.70055123982434, + "latitude": 30.37760838377917 + }, + { + "label": "地点65", + "longitude": 112.2908623525636, + "latitude": 20.636608908358827 + }, + { + "label": "地点66", + "longitude": 116.29913159285731, + "latitude": 21.117647387286883 + }, + { + "label": "地点67", + "longitude": 110.64997748910217, + "latitude": 30.632978762384635 + }, + { + "label": "地点68", + "longitude": 115.03551142849408, + "latitude": 28.76166753538753 + }, + { + "label": "地点69", + "longitude": 118.16828223169694, + "latitude": 27.86560075368348 + }, + { + "label": "地点70", + "longitude": 116.64388416894342, + "latitude": 23.732889431625605 + }, + { + "label": "地点71", + "longitude": 117.01716202317607, + "latitude": 26.411745335085847 + }, + { + "label": "地点72", + "longitude": 119.0528502736986, + "latitude": 30.975780240157185 + }, + { + "label": "地点73", + "longitude": 111.62098581870485, + "latitude": 24.20961231434314 + }, + { + "label": "地点74", + "longitude": 112.90681498498914, + "latitude": 23.40462485091016 + }, + { + "label": "地点75", + "longitude": 113.87290725172237, + "latitude": 27.957210905982787 + }, + { + "label": "地点76", + "longitude": 111.4351281539321, + "latitude": 26.067394202010092 + }, + { + "label": "地点77", + "longitude": 112.17865402329603, + "latitude": 23.459726725155463 + }, + { + "label": "地点78", + "longitude": 118.6067805466999, + "latitude": 20.430889502284213 + }, + { + "label": "地点79", + "longitude": 119.86100215229368, + "latitude": 22.606302215596465 + }, + { + "label": "地点80", + "longitude": 112.58061715449392, + "latitude": 31.142494941046696 + }, + { + "label": "地点81", + "longitude": 118.6902238533758, + "latitude": 30.741504740446324 + }, + { + "label": "地点82", + "longitude": 112.5477506596301, + "latitude": 25.031569551508312 + }, + { + "label": "地点83", + "longitude": 119.21276211388378, + "latitude": 33.69532765635268 + }, + { + "label": "地点84", + "longitude": 114.07547642575129, + "latitude": 27.453785530612798 + }, + { + "label": "地点85", + "longitude": 110.41265620827224, + "latitude": 31.98931823405719 + }, + { + "label": "地点86", + "longitude": 112.15414159544264, + "latitude": 30.707017721158167 + }, + { + "label": "地点87", + "longitude": 119.38755922857605, + "latitude": 24.47340078670114 + }, + { + "label": "地点88", + "longitude": 111.72098564265526, + "latitude": 27.365719272041805 + }, + { + "label": "地点89", + "longitude": 115.71930618872699, + "latitude": 25.470868999884143 + }, + { + "label": "地点90", + "longitude": 116.7633609569867, + "latitude": 27.900665635285762 + }, + { + "label": "地点91", + "longitude": 110.64906147977024, + "latitude": 25.72070294929258 + }, + { + "label": "地点92", + "longitude": 118.74245248242234, + "latitude": 28.331578115698314 + }, + { + "label": "地点93", + "longitude": 117.98769547377907, + "latitude": 30.610126792564532 + }, + { + "label": "地点94", + "longitude": 119.00204494179899, + "latitude": 21.648573833072902 + }, + { + "label": "地点95", + "longitude": 116.6179613174326, + "latitude": 25.600266308896597 + }, + { + "label": "地点96", + "longitude": 116.5858571156058, + "latitude": 29.268767376052487 + }, + { + "label": "地点97", + "longitude": 114.05339159745577, + "latitude": 21.567441619727603 + }, + { + "label": "地点98", + "longitude": 119.02419400402812, + "latitude": 23.944254060602287 + }, + { + "label": "地点99", + "longitude": 114.55328204095066, + "latitude": 33.2515212933515 + } + ] + } + } +] diff --git a/evaluations/datastes/chart/word-cloud/eval.json b/evaluations/datastes/chart/word-cloud/eval.json new file mode 100644 index 0000000..522cb60 --- /dev/null +++ b/evaluations/datastes/chart/word-cloud/eval.json @@ -0,0 +1,86 @@ +[ + { + "type": "text2chart", + "question": "分析一篇关于全球化影响的文章,生成词云图,其中“全球化”出现了 22 次,“经济”出现了 17 次,“文化”出现了 14 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"全球化\",\"value\":22},{\"text\":\"经济\",\"value\":17},{\"text\":\"文化\",\"value\":14}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"全球化\",\"value\":22},{\"text\":\"经济\",\"value\":17},{\"text\":\"文化\",\"value\":14}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "根据一次社会调查报告,生成词云图可视化,“就业”被提到 28 次,“教育”被提到 20 次,“医疗”被提及了 15 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"就业\",\"value\":28},{\"text\":\"教育\",\"value\":20},{\"text\":\"医疗\",\"value\":15}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"就业\",\"value\":28},{\"text\":\"教育\",\"value\":20},{\"text\":\"医疗\",\"value\":15}]}", + "reference": ["词云图 - WordCloud Chart"] + }, + { + "type": "text2chart", + "question": "基于一份关于健康生活方式的报告制作词云图,其中“饮食”出现了 25 次,“运动”出现了 18 次,“睡眠质量”出现了 12 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"饮食\",\"value\":25},{\"text\":\"运动\",\"value\":18},{\"text\":\"睡眠质量\",\"value\":12}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"饮食\",\"value\":25},{\"text\":\"运动\",\"value\":18},{\"text\":\"睡眠质量\",\"value\":12}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"] + }, + { + "type": "text2chart", + "question": "根据一项针对在线教育满意度的研究结果生成词云图。在研究中,“互动性”得到了 40 分的评价,“教师素质”获得了 35 分,“技术问题”影响得分为 10 分。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"互动性\",\"value\":40},{\"text\":\"教师素质\",\"value\":35},{\"text\":\"技术问题\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"互动性\",\"value\":40},{\"text\":\"教师素质\",\"value\":35},{\"text\":\"技术问题\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "text2chart", + "question": "对一本畅销小说的读者反馈进行分析后制作词云图。“情节吸引人”收到了 50 条正面评论,“角色塑造生动”得到了 40 条好评,“结局意外”则被提到了 20 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"情节吸引人\",\"value\":50},{\"text\":\"角色塑造生动\",\"value\":40},{\"text\":\"结局意外\",\"value\":20}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"情节吸引人\",\"value\":50},{\"text\":\"角色塑造生动\",\"value\":40},{\"text\":\"结局意外\",\"value\":20}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "分析社交媒体上的热门话题,词频统计为:[\"网络安全\": 20, \"隐私\": 18, \"数据泄露\": 15, \"加密\": 12, \"黑客\": 10]。用词云图展示分析结果。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"网络安全\",\"value\":20},{\"text\":\"隐私\",\"value\":18},{\"text\":\"数据泄露\",\"value\":15},{\"text\":\"加密\",\"value\":12},{\"text\":\"黑客\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"网络安全\",\"value\":20},{\"text\":\"隐私\",\"value\":18},{\"text\":\"数据泄露\",\"value\":15},{\"text\":\"加密\",\"value\":12},{\"text\":\"黑客\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "在文学作品中查找高频词,得到结果:[\"爱情\": 22, \"命运\": 18, \"战争\": 15, \"家族\": 12, \"秘密\": 9]。请将其用词云图可视化。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"爱情\",\"value\":22},{\"text\":\"命运\",\"value\":18},{\"text\":\"战争\",\"value\":15},{\"text\":\"家族\",\"value\":12},{\"text\":\"秘密\",\"value\":9}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"爱情\",\"value\":22},{\"text\":\"命运\",\"value\":18},{\"text\":\"战争\",\"value\":15},{\"text\":\"家族\",\"value\":12},{\"text\":\"秘密\",\"value\":9}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"] + }, + { + "type": "data2chart", + "question": "对一篇关于健康饮食的文章进行关键词提取,结果为:[\"营养\": 17, \"健康\": 15, \"维生素\": 12, \"矿物质\": 10, \"膳食纤维\": 8]。请生成词云图。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"营养\",\"value\":17},{\"text\":\"健康\",\"value\":15},{\"text\":\"维生素\",\"value\":12},{\"text\":\"矿物质\",\"value\":10},{\"text\":\"膳食纤维\",\"value\":8}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"营养\",\"value\":17},{\"text\":\"健康\",\"value\":15},{\"text\":\"维生素\",\"value\":12},{\"text\":\"矿物质\",\"value\":10},{\"text\":\"膳食纤维\",\"value\":8}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "对一个技术博客进行关键词分析,得到的数据是 [{ \"label\": \"编程\", \"value\": 30 }, { \"label\": \"算法\", \"value\": 25 }, { \"label\": \"数据库\", \"value\": 20 }, { \"label\": \"前端\", \"value\": 15 }, { \"label\": \"后端\", \"value\": 10 }],请使用词云图来表示这些数据。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"编程\",\"value\":30},{\"text\":\"算法\",\"value\":25},{\"text\":\"数据库\",\"value\":20},{\"text\":\"前端\",\"value\":15},{\"text\":\"后端\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"编程\",\"value\":30},{\"text\":\"算法\",\"value\":25},{\"text\":\"数据库\",\"value\":20},{\"text\":\"前端\",\"value\":15},{\"text\":\"后端\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"] + }, + { + "type": "data2chart", + "question": "根据我的数据:[{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":7.75434839431,\"label\":\"万物\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":6.89126871927,\"label\":\"事物\"},{\"value\":11.739204307083542,\"label\":\"会变\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":8.70772080109,\"label\":\"认知\"},{\"value\":13.68728134056,\"label\":\"元素\"},{\"value\":8.29487558568,\"label\":\"世间\"},{\"value\":8.77077893705,\"label\":\"肉眼\"},{\"value\":8.10461990121,\"label\":\"大自然\"},{\"value\":7.69410172525,\"label\":\"粒子\"},{\"value\":7.65457088649,\"label\":\"分割\"},{\"value\":21.6192703972,\"label\":\"积木\"},{\"value\":10.7226238216,\"label\":\"永恒不变\"},{\"value\":7.14957618304,\"label\":\"原子\"},{\"value\":7.95787827685,\"label\":\"尺度\"},{\"value\":7.36109169636,\"label\":\"衡量\"},{\"value\":11.7034530746,\"label\":\"明辨是非\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":6.90950076485,\"label\":\"理性\"},{\"value\":12.06102341102,\"label\":\"模式\"},{\"value\":11.739204307083542,\"label\":\"理型\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":9.54656840164,\"label\":\"东西\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":34.45634359635,\"label\":\"事物\"},{\"value\":27.886522397969998,\"label\":\"感官\"},{\"value\":6.47412857958,\"label\":\"痛苦\"},{\"value\":6.06866347147,\"label\":\"避免\"},{\"value\":5.02315619812,\"label\":\"形式\"},{\"value\":4.80149232937,\"label\":\"方式\"},{\"value\":21.209681572,\"label\":\"万事万物\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":7.37711534583,\"label\":\"一体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":9.17328983326,\"label\":\"赦免\"},{\"value\":8.04274449749,\"label\":\"拯救\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":7.95787827685,\"label\":\"世人\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":11.67082488616,\"label\":\"创造\"},{\"value\":9.80633308975,\"label\":\"虚空\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":16.57509909118,\"label\":\"启示\"},{\"value\":14.51638170122,\"label\":\"信仰\"},{\"value\":13.8190015297,\"label\":\"理性\"},{\"value\":10.5684731418,\"label\":\"观感\"},{\"value\":12.57964972316,\"label\":\"地球\"},{\"value\":12.45583951066,\"label\":\"太阳\"},{\"value\":11.39201164604,\"label\":\"运行\"},{\"value\":14.35128801962,\"label\":\"物体\"},{\"value\":11.18052531558,\"label\":\"状态\"},{\"value\":10.0505300503,\"label\":\"轴心\"},{\"value\":9.56994431169,\"label\":\"星球\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":21.52693202943,\"label\":\"物体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":22.44204817149,\"label\":\"上帝\"},{\"value\":12.1089181827,\"label\":\"主宰世界\"},{\"value\":10.8096351986,\"label\":\"牵线\"},{\"value\":10.6818018271,\"label\":\"自然法则\"},{\"value\":18.59101493198,\"label\":\"感官\"},{\"value\":15.51728049278,\"label\":\"心灵\"},{\"value\":10.1394775363,\"label\":\"任何事物\"},{\"value\":14.95161725614,\"label\":\"哲学家\"},{\"value\":13.78796485028,\"label\":\"感受\"},{\"value\":10.3743171274,\"label\":\"天主\"},{\"value\":10.2117981979,\"label\":\"质料\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":14.35850390238,\"label\":\"头顶\"},{\"value\":12.5143832909,\"label\":\"因果律\"},{\"value\":11.0674643079,\"label\":\"根植\"},{\"value\":16.20923980242,\"label\":\"大自然\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":10.1164880181,\"label\":\"无休止\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.1394775363,\"label\":\"脚踏实地\"},{\"value\":26.6063055869,\"label\":\"阶段\"},{\"value\":13.0408437271,\"label\":\"真实\"},{\"value\":10.48883682488,\"label\":\"是否\"},{\"value\":17.0798274558,\"label\":\"物质\"},{\"value\":11.739204307083542,\"label\":\"新的\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.4471578861,\"label\":\"改变\"},{\"value\":10.21443458184,\"label\":\"造成\"},{\"value\":16.20923980242,\"label\":\"一艘\"},{\"value\":15.07529909688,\"label\":\"航行\"},{\"value\":11.739204307083542,\"label\":\"人则\"},{\"value\":11.7034530746,\"label\":\"物竞天择\"},{\"value\":10.5684731418,\"label\":\"适者生存\"},{\"value\":19.89886786678,\"label\":\"潜意识\"},{\"value\":12.76848869812,\"label\":\"意识\"}],请用词云图可视化。", + "response": "{\"type\":\"wordCloud\",\"data\":[{\"text\":\"物质\",\"value\":11.3865516372},{\"text\":\"万物\",\"value\":7.75434839431},{\"text\":\"感官\",\"value\":9.29550746599},{\"text\":\"事物\",\"value\":6.89126871927},{\"text\":\"会变\",\"value\":11.739204307083542},{\"text\":\"认知\",\"value\":8.70772080109},{\"text\":\"元素\",\"value\":13.68728134056},{\"text\":\"世间\",\"value\":8.29487558568},{\"text\":\"肉眼\",\"value\":8.77077893705},{\"text\":\"大自然\",\"value\":8.10461990121},{\"text\":\"粒子\",\"value\":7.69410172525},{\"text\":\"分割\",\"value\":7.65457088649},{\"text\":\"积木\",\"value\":21.6192703972},{\"text\":\"永恒不变\",\"value\":10.7226238216},{\"text\":\"原子\",\"value\":7.14957618304},{\"text\":\"尺度\",\"value\":7.95787827685},{\"text\":\"衡量\",\"value\":7.36109169636},{\"text\":\"明辨是非\",\"value\":11.7034530746},{\"text\":\"存在\",\"value\":9.14102377386},{\"text\":\"理性\",\"value\":6.90950076485},{\"text\":\"模式\",\"value\":12.06102341102},{\"text\":\"理型\",\"value\":11.739204307083542},{\"text\":\"东西\",\"value\":9.54656840164},{\"text\":\"世界\",\"value\":8.73505881114},{\"text\":\"事物\",\"value\":34.45634359635},{\"text\":\"感官\",\"value\":27.886522397969998},{\"text\":\"痛苦\",\"value\":6.47412857958},{\"text\":\"避免\",\"value\":6.06866347147},{\"text\":\"形式\",\"value\":5.02315619812},{\"text\":\"方式\",\"value\":4.80149232937},{\"text\":\"万事万物\",\"value\":21.209681572},{\"text\":\"上帝\",\"value\":7.48068272383},{\"text\":\"一体\",\"value\":7.37711534583},{\"text\":\"宇宙\",\"value\":7.36834335975},{\"text\":\"赦免\",\"value\":9.17328983326},{\"text\":\"拯救\",\"value\":8.04274449749},{\"text\":\"世人\",\"value\":7.95787827685},{\"text\":\"创造\",\"value\":11.67082488616},{\"text\":\"虚空\",\"value\":9.80633308975},{\"text\":\"运行\",\"value\":11.39201164604},{\"text\":\"物体\",\"value\":14.35128801962},{\"text\":\"状态\",\"value\":11.18052531558},{\"text\":\"轴心\",\"value\":10.0505300503},{\"text\":\"星球\",\"value\":9.56994431169},{\"text\":\"感官\",\"value\":9.29550746599},{\"text\":\"物体\",\"value\":21.52693202943},{\"text\":\"宇宙\",\"value\":7.36834335975},{\"text\":\"上帝\",\"value\":22.44204817149},{\"text\":\"主宰世界\",\"value\":12.1089181827},{\"text\":\"牵线\",\"value\":10.8096351986},{\"text\":\"自然法则\",\"value\":10.6818018271},{\"text\":\"感官\",\"value\":18.59101493198},{\"text\":\"心灵\",\"value\":15.51728049278},{\"text\":\"任何事物\",\"value\":10.1394775363},{\"text\":\"哲学家\",\"value\":14.95161725614},{\"text\":\"感受\",\"value\":13.78796485028},{\"text\":\"天主\",\"value\":10.3743171274},{\"text\":\"质料\",\"value\":10.2117981979},{\"text\":\"存在\",\"value\":9.14102377386},{\"text\":\"上帝\",\"value\":14.96136544766},{\"text\":\"头顶\",\"value\":14.35850390238},{\"text\":\"因果律\",\"value\":12.5143832909},{\"text\":\"根植\",\"value\":11.0674643079},{\"text\":\"大自然\",\"value\":16.20923980242},{\"text\":\"世界\",\"value\":13.10258821671},{\"text\":\"物质\",\"value\":11.3865516372},{\"text\":\"无休止\",\"value\":10.1164880181},{\"text\":\"世界\",\"value\":13.10258821671},{\"text\":\"精神\",\"value\":11.23942650284},{\"text\":\"脚踏实地\",\"value\":10.1394775363},{\"text\":\"阶段\",\"value\":26.6063055869},{\"text\":\"真实\",\"value\":13.0408437271},{\"text\":\"是否\",\"value\":10.48883682488},{\"text\":\"物质\",\"value\":17.0798274558},{\"text\":\"新的\",\"value\":11.739204307083542},{\"text\":\"精神\",\"value\":11.23942650284},{\"text\":\"改变\",\"value\":10.4471578861},{\"text\":\"造成\",\"value\":10.21443458184},{\"text\":\"一艘\",\"value\":16.20923980242},{\"text\":\"航行\",\"value\":15.07529909688},{\"text\":\"人则\",\"value\":11.739204307083542},{\"text\":\"物竞天择\",\"value\":11.7034530746},{\"text\":\"适者生存\",\"value\":10.5684731418},{\"text\":\"潜意识\",\"value\":19.89886786678},{\"text\":\"意识\",\"value\":12.76848869812}],\"title\": \"词云图\"}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":7.75434839431,\"text\":\"万物\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":6.89126871927,\"text\":\"事物\"},{\"value\":11.739204307083542,\"text\":\"会变\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":8.70772080109,\"text\":\"认知\"},{\"value\":13.68728134056,\"text\":\"元素\"},{\"value\":8.29487558568,\"text\":\"世间\"},{\"value\":8.77077893705,\"text\":\"肉眼\"},{\"value\":8.10461990121,\"text\":\"大自然\"},{\"value\":7.69410172525,\"text\":\"粒子\"},{\"value\":7.65457088649,\"text\":\"分割\"},{\"value\":21.6192703972,\"text\":\"积木\"},{\"value\":10.7226238216,\"text\":\"永恒不变\"},{\"value\":7.14957618304,\"text\":\"原子\"},{\"value\":7.95787827685,\"text\":\"尺度\"},{\"value\":7.36109169636,\"text\":\"衡量\"},{\"value\":11.7034530746,\"text\":\"明辨是非\"},{\"value\":9.14102377386,\"text\":\"存在\"},{\"value\":6.90950076485,\"text\":\"理性\"},{\"value\":12.06102341102,\"text\":\"模式\"},{\"value\":11.739204307083542,\"text\":\"理型\"},{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":9.54656840164,\"text\":\"东西\"},{\"value\":8.73505881114,\"text\":\"世界\"},{\"value\":34.45634359635,\"text\":\"事物\"},{\"value\":27.886522397969998,\"text\":\"感官\"},{\"value\":6.47412857958,\"text\":\"痛苦\"},{\"value\":6.06866347147,\"text\":\"避免\"},{\"value\":5.02315619812,\"text\":\"形式\"},{\"value\":4.80149232937,\"text\":\"方式\"},{\"value\":21.209681572,\"text\":\"万事万物\"},{\"value\":7.48068272383,\"text\":\"上帝\"},{\"value\":7.37711534583,\"text\":\"一体\"},{\"value\":7.36834335975,\"text\":\"宇宙\"},{\"value\":9.17328983326,\"text\":\"赦免\"},{\"value\":8.04274449749,\"text\":\"拯救\"},{\"value\":7.48068272383,\"text\":\"上帝\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":7.95787827685,\"text\":\"世人\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":11.67082488616,\"text\":\"创造\"},{\"value\":9.80633308975,\"text\":\"虚空\"},{\"value\":8.73505881114,\"text\":\"世界\"},{\"value\":16.57509909118,\"text\":\"启示\"},{\"value\":14.51638170122,\"text\":\"信仰\"},{\"value\":13.8190015297,\"text\":\"理性\"},{\"value\":10.5684731418,\"text\":\"观感\"},{\"value\":12.57964972316,\"text\":\"地球\"},{\"value\":12.45583951066,\"text\":\"太阳\"},{\"value\":11.39201164604,\"text\":\"运行\"},{\"value\":14.35128801962,\"text\":\"物体\"},{\"value\":11.18052531558,\"text\":\"状态\"},{\"value\":10.0505300503,\"text\":\"轴心\"},{\"value\":9.56994431169,\"text\":\"星球\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":21.52693202943,\"text\":\"物体\"},{\"value\":7.36834335975,\"text\":\"宇宙\"},{\"value\":22.44204817149,\"text\":\"上帝\"},{\"value\":12.1089181827,\"text\":\"主宰世界\"},{\"value\":10.8096351986,\"text\":\"牵线\"},{\"value\":10.6818018271,\"text\":\"自然法则\"},{\"value\":18.59101493198,\"text\":\"感官\"},{\"value\":15.51728049278,\"text\":\"心灵\"},{\"value\":10.1394775363,\"text\":\"任何事物\"},{\"value\":14.95161725614,\"text\":\"哲学家\"},{\"value\":13.78796485028,\"text\":\"感受\"},{\"value\":10.3743171274,\"text\":\"天主\"},{\"value\":10.2117981979,\"text\":\"质料\"},{\"value\":9.14102377386,\"text\":\"存在\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":14.35850390238,\"text\":\"头顶\"},{\"value\":12.5143832909,\"text\":\"因果律\"},{\"value\":11.0674643079,\"text\":\"根植\"},{\"value\":16.20923980242,\"text\":\"大自然\"},{\"value\":13.10258821671,\"text\":\"世界\"},{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":10.1164880181,\"text\":\"无休止\"},{\"value\":13.10258821671,\"text\":\"世界\"},{\"value\":11.23942650284,\"text\":\"精神\"},{\"value\":10.1394775363,\"text\":\"脚踏实地\"},{\"value\":26.6063055869,\"text\":\"阶段\"},{\"value\":13.0408437271,\"text\":\"真实\"},{\"value\":10.48883682488,\"text\":\"是否\"},{\"value\":17.0798274558,\"text\":\"物质\"},{\"value\":11.739204307083542,\"text\":\"新的\"},{\"value\":11.23942650284,\"text\":\"精神\"},{\"value\":10.4471578861,\"text\":\"改变\"},{\"value\":10.21443458184,\"text\":\"造成\"},{\"value\":16.20923980242,\"text\":\"一艘\"},{\"value\":15.07529909688,\"text\":\"航行\"},{\"value\":11.739204307083542,\"text\":\"人则\"},{\"value\":11.7034530746,\"text\":\"物竞天择\"},{\"value\":10.5684731418,\"text\":\"适者生存\"},{\"value\":19.89886786678,\"text\":\"潜意识\"},{\"value\":12.76848869812,\"text\":\"意识\"}]}", + "reference": [] + } +] diff --git a/evaluations/datastes/chart/word-cloud/metrics.json b/evaluations/datastes/chart/word-cloud/metrics.json new file mode 100644 index 0000000..bae478d --- /dev/null +++ b/evaluations/datastes/chart/word-cloud/metrics.json @@ -0,0 +1,98 @@ +[ + { + "type": "text2chart", + "question": "分析一篇关于全球化影响的文章,生成词云图,其中“全球化”出现了 22 次,“经济”出现了 17 次,“文化”出现了 14 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"全球化\",\"value\":22},{\"text\":\"经济\",\"value\":17},{\"text\":\"文化\",\"value\":14}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"全球化\",\"value\":22},{\"text\":\"经济\",\"value\":17},{\"text\":\"文化\",\"value\":14}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "根据一次社会调查报告,生成词云图可视化,“就业”被提到 28 次,“教育”被提到 20 次,“医疗”被提及了 15 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"就业\",\"value\":28},{\"text\":\"教育\",\"value\":20},{\"text\":\"医疗\",\"value\":15}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"就业\",\"value\":28},{\"text\":\"教育\",\"value\":20},{\"text\":\"医疗\",\"value\":15}]}", + "reference": ["词云图 - WordCloud Chart"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "基于一份关于健康生活方式的报告制作词云图,其中“饮食”出现了 25 次,“运动”出现了 18 次,“睡眠质量”出现了 12 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"饮食\",\"value\":25},{\"text\":\"运动\",\"value\":18},{\"text\":\"睡眠质量\",\"value\":12}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"饮食\",\"value\":25},{\"text\":\"运动\",\"value\":18},{\"text\":\"睡眠质量\",\"value\":12}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "根据一项针对在线教育满意度的研究结果生成词云图。在研究中,“互动性”得到了 40 分的评价,“教师素质”获得了 35 分,“技术问题”影响得分为 10 分。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"互动性\",\"value\":40},{\"text\":\"教师素质\",\"value\":35},{\"text\":\"技术问题\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"互动性\",\"value\":40},{\"text\":\"教师素质\",\"value\":35},{\"text\":\"技术问题\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "text2chart", + "question": "对一本畅销小说的读者反馈进行分析后制作词云图。“情节吸引人”收到了 50 条正面评论,“角色塑造生动”得到了 40 条好评,“结局意外”则被提到了 20 次。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"情节吸引人\",\"value\":50},{\"text\":\"角色塑造生动\",\"value\":40},{\"text\":\"结局意外\",\"value\":20}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"情节吸引人\",\"value\":50},{\"text\":\"角色塑造生动\",\"value\":40},{\"text\":\"结局意外\",\"value\":20}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "分析社交媒体上的热门话题,词频统计为:[\"网络安全\": 20, \"隐私\": 18, \"数据泄露\": 15, \"加密\": 12, \"黑客\": 10]。用词云图展示分析结果。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"网络安全\",\"value\":20},{\"text\":\"隐私\",\"value\":18},{\"text\":\"数据泄露\",\"value\":15},{\"text\":\"加密\",\"value\":12},{\"text\":\"黑客\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"网络安全\",\"value\":20},{\"text\":\"隐私\",\"value\":18},{\"text\":\"数据泄露\",\"value\":15},{\"text\":\"加密\",\"value\":12},{\"text\":\"黑客\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "在文学作品中查找高频词,得到结果:[\"爱情\": 22, \"命运\": 18, \"战争\": 15, \"家族\": 12, \"秘密\": 9]。请将其用词云图可视化。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"爱情\",\"value\":22},{\"text\":\"命运\",\"value\":18},{\"text\":\"战争\",\"value\":15},{\"text\":\"家族\",\"value\":12},{\"text\":\"秘密\",\"value\":9}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"爱情\",\"value\":22},{\"text\":\"命运\",\"value\":18},{\"text\":\"战争\",\"value\":15},{\"text\":\"家族\",\"value\":12},{\"text\":\"秘密\",\"value\":9}]}", + "reference": ["词云图 - WordCloud Chart 基础概念"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "对一篇关于健康饮食的文章进行关键词提取,结果为:[\"营养\": 17, \"健康\": 15, \"维生素\": 12, \"矿物质\": 10, \"膳食纤维\": 8]。请生成词云图。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"营养\",\"value\":17},{\"text\":\"健康\",\"value\":15},{\"text\":\"维生素\",\"value\":12},{\"text\":\"矿物质\",\"value\":10},{\"text\":\"膳食纤维\",\"value\":8}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"营养\",\"value\":17},{\"text\":\"健康\",\"value\":15},{\"text\":\"维生素\",\"value\":12},{\"text\":\"矿物质\",\"value\":10},{\"text\":\"膳食纤维\",\"value\":8}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "对一个技术博客进行关键词分析,得到的数据是 [{ \"label\": \"编程\", \"value\": 30 }, { \"label\": \"算法\", \"value\": 25 }, { \"label\": \"数据库\", \"value\": 20 }, { \"label\": \"前端\", \"value\": 15 }, { \"label\": \"后端\", \"value\": 10 }],请使用词云图来表示这些数据。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"编程\",\"value\":30},{\"text\":\"算法\",\"value\":25},{\"text\":\"数据库\",\"value\":20},{\"text\":\"前端\",\"value\":15},{\"text\":\"后端\",\"value\":10}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"编程\",\"value\":30},{\"text\":\"算法\",\"value\":25},{\"text\":\"数据库\",\"value\":20},{\"text\":\"前端\",\"value\":15},{\"text\":\"后端\",\"value\":10}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "response": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"text\":\"人工智能\",\"value\":15},{\"text\":\"机器学习\",\"value\":12},{\"text\":\"算法\",\"value\":9},{\"text\":\"深度学习\",\"value\":8},{\"text\":\"数据集\",\"value\":7}]}", + "reference": ["词云图 - WordCloud Chart 使用示例"], + "correctness": 1 + }, + { + "type": "data2chart", + "question": "根据我的数据:[{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":7.75434839431,\"label\":\"万物\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":6.89126871927,\"label\":\"事物\"},{\"value\":11.739204307083542,\"label\":\"会变\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":8.70772080109,\"label\":\"认知\"},{\"value\":13.68728134056,\"label\":\"元素\"},{\"value\":8.29487558568,\"label\":\"世间\"},{\"value\":8.77077893705,\"label\":\"肉眼\"},{\"value\":8.10461990121,\"label\":\"大自然\"},{\"value\":7.69410172525,\"label\":\"粒子\"},{\"value\":7.65457088649,\"label\":\"分割\"},{\"value\":21.6192703972,\"label\":\"积木\"},{\"value\":10.7226238216,\"label\":\"永恒不变\"},{\"value\":7.14957618304,\"label\":\"原子\"},{\"value\":7.95787827685,\"label\":\"尺度\"},{\"value\":7.36109169636,\"label\":\"衡量\"},{\"value\":11.7034530746,\"label\":\"明辨是非\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":6.90950076485,\"label\":\"理性\"},{\"value\":12.06102341102,\"label\":\"模式\"},{\"value\":11.739204307083542,\"label\":\"理型\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":9.54656840164,\"label\":\"东西\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":34.45634359635,\"label\":\"事物\"},{\"value\":27.886522397969998,\"label\":\"感官\"},{\"value\":6.47412857958,\"label\":\"痛苦\"},{\"value\":6.06866347147,\"label\":\"避免\"},{\"value\":5.02315619812,\"label\":\"形式\"},{\"value\":4.80149232937,\"label\":\"方式\"},{\"value\":21.209681572,\"label\":\"万事万物\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":7.37711534583,\"label\":\"一体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":9.17328983326,\"label\":\"赦免\"},{\"value\":8.04274449749,\"label\":\"拯救\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":7.95787827685,\"label\":\"世人\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":11.67082488616,\"label\":\"创造\"},{\"value\":9.80633308975,\"label\":\"虚空\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":16.57509909118,\"label\":\"启示\"},{\"value\":14.51638170122,\"label\":\"信仰\"},{\"value\":13.8190015297,\"label\":\"理性\"},{\"value\":10.5684731418,\"label\":\"观感\"},{\"value\":12.57964972316,\"label\":\"地球\"},{\"value\":12.45583951066,\"label\":\"太阳\"},{\"value\":11.39201164604,\"label\":\"运行\"},{\"value\":14.35128801962,\"label\":\"物体\"},{\"value\":11.18052531558,\"label\":\"状态\"},{\"value\":10.0505300503,\"label\":\"轴心\"},{\"value\":9.56994431169,\"label\":\"星球\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":21.52693202943,\"label\":\"物体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":22.44204817149,\"label\":\"上帝\"},{\"value\":12.1089181827,\"label\":\"主宰世界\"},{\"value\":10.8096351986,\"label\":\"牵线\"},{\"value\":10.6818018271,\"label\":\"自然法则\"},{\"value\":18.59101493198,\"label\":\"感官\"},{\"value\":15.51728049278,\"label\":\"心灵\"},{\"value\":10.1394775363,\"label\":\"任何事物\"},{\"value\":14.95161725614,\"label\":\"哲学家\"},{\"value\":13.78796485028,\"label\":\"感受\"},{\"value\":10.3743171274,\"label\":\"天主\"},{\"value\":10.2117981979,\"label\":\"质料\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":14.35850390238,\"label\":\"头顶\"},{\"value\":12.5143832909,\"label\":\"因果律\"},{\"value\":11.0674643079,\"label\":\"根植\"},{\"value\":16.20923980242,\"label\":\"大自然\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":10.1164880181,\"label\":\"无休止\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.1394775363,\"label\":\"脚踏实地\"},{\"value\":26.6063055869,\"label\":\"阶段\"},{\"value\":13.0408437271,\"label\":\"真实\"},{\"value\":10.48883682488,\"label\":\"是否\"},{\"value\":17.0798274558,\"label\":\"物质\"},{\"value\":11.739204307083542,\"label\":\"新的\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.4471578861,\"label\":\"改变\"},{\"value\":10.21443458184,\"label\":\"造成\"},{\"value\":16.20923980242,\"label\":\"一艘\"},{\"value\":15.07529909688,\"label\":\"航行\"},{\"value\":11.739204307083542,\"label\":\"人则\"},{\"value\":11.7034530746,\"label\":\"物竞天择\"},{\"value\":10.5684731418,\"label\":\"适者生存\"},{\"value\":19.89886786678,\"label\":\"潜意识\"},{\"value\":12.76848869812,\"label\":\"意识\"}],请用词云图可视化。", + "response": "{\"type\":\"wordCloud\",\"data\":[{\"text\":\"物质\",\"value\":11.3865516372},{\"text\":\"万物\",\"value\":7.75434839431},{\"text\":\"感官\",\"value\":9.29550746599},{\"text\":\"事物\",\"value\":6.89126871927},{\"text\":\"会变\",\"value\":11.739204307083542},{\"text\":\"认知\",\"value\":8.70772080109},{\"text\":\"元素\",\"value\":13.68728134056},{\"text\":\"世间\",\"value\":8.29487558568},{\"text\":\"肉眼\",\"value\":8.77077893705},{\"text\":\"大自然\",\"value\":8.10461990121},{\"text\":\"粒子\",\"value\":7.69410172525},{\"text\":\"分割\",\"value\":7.65457088649},{\"text\":\"积木\",\"value\":21.6192703972},{\"text\":\"永恒不变\",\"value\":10.7226238216},{\"text\":\"原子\",\"value\":7.14957618304},{\"text\":\"尺度\",\"value\":7.95787827685},{\"text\":\"衡量\",\"value\":7.36109169636},{\"text\":\"明辨是非\",\"value\":11.7034530746},{\"text\":\"存在\",\"value\":9.14102377386},{\"text\":\"理性\",\"value\":6.90950076485},{\"text\":\"模式\",\"value\":12.06102341102},{\"text\":\"理型\",\"value\":11.739204307083542},{\"text\":\"东西\",\"value\":9.54656840164},{\"text\":\"世界\",\"value\":8.73505881114},{\"text\":\"事物\",\"value\":34.45634359635},{\"text\":\"感官\",\"value\":27.886522397969998},{\"text\":\"痛苦\",\"value\":6.47412857958},{\"text\":\"避免\",\"value\":6.06866347147},{\"text\":\"形式\",\"value\":5.02315619812},{\"text\":\"方式\",\"value\":4.80149232937},{\"text\":\"万事万物\",\"value\":21.209681572},{\"text\":\"上帝\",\"value\":7.48068272383},{\"text\":\"一体\",\"value\":7.37711534583},{\"text\":\"宇宙\",\"value\":7.36834335975},{\"text\":\"赦免\",\"value\":9.17328983326},{\"text\":\"拯救\",\"value\":8.04274449749},{\"text\":\"世人\",\"value\":7.95787827685},{\"text\":\"创造\",\"value\":11.67082488616},{\"text\":\"虚空\",\"value\":9.80633308975},{\"text\":\"运行\",\"value\":11.39201164604},{\"text\":\"物体\",\"value\":14.35128801962},{\"text\":\"状态\",\"value\":11.18052531558},{\"text\":\"轴心\",\"value\":10.0505300503},{\"text\":\"星球\",\"value\":9.56994431169},{\"text\":\"感官\",\"value\":9.29550746599},{\"text\":\"物体\",\"value\":21.52693202943},{\"text\":\"宇宙\",\"value\":7.36834335975},{\"text\":\"上帝\",\"value\":22.44204817149},{\"text\":\"主宰世界\",\"value\":12.1089181827},{\"text\":\"牵线\",\"value\":10.8096351986},{\"text\":\"自然法则\",\"value\":10.6818018271},{\"text\":\"感官\",\"value\":18.59101493198},{\"text\":\"心灵\",\"value\":15.51728049278},{\"text\":\"任何事物\",\"value\":10.1394775363},{\"text\":\"哲学家\",\"value\":14.95161725614},{\"text\":\"感受\",\"value\":13.78796485028},{\"text\":\"天主\",\"value\":10.3743171274},{\"text\":\"质料\",\"value\":10.2117981979},{\"text\":\"存在\",\"value\":9.14102377386},{\"text\":\"上帝\",\"value\":14.96136544766},{\"text\":\"头顶\",\"value\":14.35850390238},{\"text\":\"因果律\",\"value\":12.5143832909},{\"text\":\"根植\",\"value\":11.0674643079},{\"text\":\"大自然\",\"value\":16.20923980242},{\"text\":\"世界\",\"value\":13.10258821671},{\"text\":\"物质\",\"value\":11.3865516372},{\"text\":\"无休止\",\"value\":10.1164880181},{\"text\":\"世界\",\"value\":13.10258821671},{\"text\":\"精神\",\"value\":11.23942650284},{\"text\":\"脚踏实地\",\"value\":10.1394775363},{\"text\":\"阶段\",\"value\":26.6063055869},{\"text\":\"真实\",\"value\":13.0408437271},{\"text\":\"是否\",\"value\":10.48883682488},{\"text\":\"物质\",\"value\":17.0798274558},{\"text\":\"新的\",\"value\":11.739204307083542},{\"text\":\"精神\",\"value\":11.23942650284},{\"text\":\"改变\",\"value\":10.4471578861},{\"text\":\"造成\",\"value\":10.21443458184},{\"text\":\"一艘\",\"value\":16.20923980242},{\"text\":\"航行\",\"value\":15.07529909688},{\"text\":\"人则\",\"value\":11.739204307083542},{\"text\":\"物竞天择\",\"value\":11.7034530746},{\"text\":\"适者生存\",\"value\":10.5684731418},{\"text\":\"潜意识\",\"value\":19.89886786678},{\"text\":\"意识\",\"value\":12.76848869812}],\"title\": \"词云图\"}", + "answer": "{\"type\":\"word-cloud\",\"data\":[{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":7.75434839431,\"text\":\"万物\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":6.89126871927,\"text\":\"事物\"},{\"value\":11.739204307083542,\"text\":\"会变\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":8.70772080109,\"text\":\"认知\"},{\"value\":13.68728134056,\"text\":\"元素\"},{\"value\":8.29487558568,\"text\":\"世间\"},{\"value\":8.77077893705,\"text\":\"肉眼\"},{\"value\":8.10461990121,\"text\":\"大自然\"},{\"value\":7.69410172525,\"text\":\"粒子\"},{\"value\":7.65457088649,\"text\":\"分割\"},{\"value\":21.6192703972,\"text\":\"积木\"},{\"value\":10.7226238216,\"text\":\"永恒不变\"},{\"value\":7.14957618304,\"text\":\"原子\"},{\"value\":7.95787827685,\"text\":\"尺度\"},{\"value\":7.36109169636,\"text\":\"衡量\"},{\"value\":11.7034530746,\"text\":\"明辨是非\"},{\"value\":9.14102377386,\"text\":\"存在\"},{\"value\":6.90950076485,\"text\":\"理性\"},{\"value\":12.06102341102,\"text\":\"模式\"},{\"value\":11.739204307083542,\"text\":\"理型\"},{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":9.54656840164,\"text\":\"东西\"},{\"value\":8.73505881114,\"text\":\"世界\"},{\"value\":34.45634359635,\"text\":\"事物\"},{\"value\":27.886522397969998,\"text\":\"感官\"},{\"value\":6.47412857958,\"text\":\"痛苦\"},{\"value\":6.06866347147,\"text\":\"避免\"},{\"value\":5.02315619812,\"text\":\"形式\"},{\"value\":4.80149232937,\"text\":\"方式\"},{\"value\":21.209681572,\"text\":\"万事万物\"},{\"value\":7.48068272383,\"text\":\"上帝\"},{\"value\":7.37711534583,\"text\":\"一体\"},{\"value\":7.36834335975,\"text\":\"宇宙\"},{\"value\":9.17328983326,\"text\":\"赦免\"},{\"value\":8.04274449749,\"text\":\"拯救\"},{\"value\":7.48068272383,\"text\":\"上帝\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":7.95787827685,\"text\":\"世人\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":11.67082488616,\"text\":\"创造\"},{\"value\":9.80633308975,\"text\":\"虚空\"},{\"value\":8.73505881114,\"text\":\"世界\"},{\"value\":16.57509909118,\"text\":\"启示\"},{\"value\":14.51638170122,\"text\":\"信仰\"},{\"value\":13.8190015297,\"text\":\"理性\"},{\"value\":10.5684731418,\"text\":\"观感\"},{\"value\":12.57964972316,\"text\":\"地球\"},{\"value\":12.45583951066,\"text\":\"太阳\"},{\"value\":11.39201164604,\"text\":\"运行\"},{\"value\":14.35128801962,\"text\":\"物体\"},{\"value\":11.18052531558,\"text\":\"状态\"},{\"value\":10.0505300503,\"text\":\"轴心\"},{\"value\":9.56994431169,\"text\":\"星球\"},{\"value\":9.29550746599,\"text\":\"感官\"},{\"value\":21.52693202943,\"text\":\"物体\"},{\"value\":7.36834335975,\"text\":\"宇宙\"},{\"value\":22.44204817149,\"text\":\"上帝\"},{\"value\":12.1089181827,\"text\":\"主宰世界\"},{\"value\":10.8096351986,\"text\":\"牵线\"},{\"value\":10.6818018271,\"text\":\"自然法则\"},{\"value\":18.59101493198,\"text\":\"感官\"},{\"value\":15.51728049278,\"text\":\"心灵\"},{\"value\":10.1394775363,\"text\":\"任何事物\"},{\"value\":14.95161725614,\"text\":\"哲学家\"},{\"value\":13.78796485028,\"text\":\"感受\"},{\"value\":10.3743171274,\"text\":\"天主\"},{\"value\":10.2117981979,\"text\":\"质料\"},{\"value\":9.14102377386,\"text\":\"存在\"},{\"value\":14.96136544766,\"text\":\"上帝\"},{\"value\":14.35850390238,\"text\":\"头顶\"},{\"value\":12.5143832909,\"text\":\"因果律\"},{\"value\":11.0674643079,\"text\":\"根植\"},{\"value\":16.20923980242,\"text\":\"大自然\"},{\"value\":13.10258821671,\"text\":\"世界\"},{\"value\":11.3865516372,\"text\":\"物质\"},{\"value\":10.1164880181,\"text\":\"无休止\"},{\"value\":13.10258821671,\"text\":\"世界\"},{\"value\":11.23942650284,\"text\":\"精神\"},{\"value\":10.1394775363,\"text\":\"脚踏实地\"},{\"value\":26.6063055869,\"text\":\"阶段\"},{\"value\":13.0408437271,\"text\":\"真实\"},{\"value\":10.48883682488,\"text\":\"是否\"},{\"value\":17.0798274558,\"text\":\"物质\"},{\"value\":11.739204307083542,\"text\":\"新的\"},{\"value\":11.23942650284,\"text\":\"精神\"},{\"value\":10.4471578861,\"text\":\"改变\"},{\"value\":10.21443458184,\"text\":\"造成\"},{\"value\":16.20923980242,\"text\":\"一艘\"},{\"value\":15.07529909688,\"text\":\"航行\"},{\"value\":11.739204307083542,\"text\":\"人则\"},{\"value\":11.7034530746,\"text\":\"物竞天择\"},{\"value\":10.5684731418,\"text\":\"适者生存\"},{\"value\":19.89886786678,\"text\":\"潜意识\"},{\"value\":12.76848869812,\"text\":\"意识\"}]}", + "reference": [], + "correctness": 0 + } +] diff --git a/evaluations/datastes/chart/word-cloud/test.json b/evaluations/datastes/chart/word-cloud/test.json new file mode 100644 index 0000000..735da12 --- /dev/null +++ b/evaluations/datastes/chart/word-cloud/test.json @@ -0,0 +1,253 @@ +[ + { + "type": "text2chart", + "question": "分析一篇关于全球化影响的文章,生成词云图,其中“全球化”出现了 22 次,“经济”出现了 17 次,“文化”出现了 14 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "全球化", "value": 22 }, + { "text": "经济", "value": 17 }, + { "text": "文化", "value": 14 } + ] + } + }, + { + "type": "text2chart", + "question": "根据一次社会调查报告,生成词云图可视化,“就业”被提到 28 次,“教育”被提到 20 次,“医疗”被提及了 15 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "就业", "value": 28 }, + { "text": "教育", "value": 20 }, + { "text": "医疗", "value": 15 } + ] + } + }, + { + "type": "text2chart", + "question": "基于一份关于健康生活方式的报告制作词云图,其中“饮食”出现了 25 次,“运动”出现了 18 次,“睡眠质量”出现了 12 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "饮食", "value": 25 }, + { "text": "运动", "value": 18 }, + { "text": "睡眠质量", "value": 12 } + ] + } + }, + { + "type": "text2chart", + "question": "根据一项针对在线教育满意度的研究结果生成词云图。在研究中,“互动性”得到了 40 分的评价,“教师素质”获得了 35 分,“技术问题”影响得分为 10 分。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "互动性", "value": 40 }, + { "text": "教师素质", "value": 35 }, + { "text": "技术问题", "value": 10 } + ] + } + }, + { + "type": "text2chart", + "question": "对一本畅销小说的读者反馈进行分析后制作词云图。“情节吸引人”收到了 50 条正面评论,“角色塑造生动”得到了 40 条好评,“结局意外”则被提到了 20 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "情节吸引人", "value": 50 }, + { "text": "角色塑造生动", "value": 40 }, + { "text": "结局意外", "value": 20 } + ] + } + }, + + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "人工智能", "value": 15 }, + { "text": "机器学习", "value": 12 }, + { "text": "算法", "value": 9 }, + { "text": "深度学习", "value": 8 }, + { "text": "数据集", "value": 7 } + ] + } + }, + { + "type": "data2chart", + "question": "分析社交媒体上的热门话题,词频统计为:[\"网络安全\": 20, \"隐私\": 18, \"数据泄露\": 15, \"加密\": 12, \"黑客\": 10]。用词云图展示分析结果。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "网络安全", "value": 20 }, + { "text": "隐私", "value": 18 }, + { "text": "数据泄露", "value": 15 }, + { "text": "加密", "value": 12 }, + { "text": "黑客", "value": 10 } + ] + } + }, + { + "type": "data2chart", + "question": "在文学作品中查找高频词,得到结果:[\"爱情\": 22, \"命运\": 18, \"战争\": 15, \"家族\": 12, \"秘密\": 9]。请将其用词云图可视化。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "爱情", "value": 22 }, + { "text": "命运", "value": 18 }, + { "text": "战争", "value": 15 }, + { "text": "家族", "value": 12 }, + { "text": "秘密", "value": 9 } + ] + } + }, + { + "type": "data2chart", + "question": "对一篇关于健康饮食的文章进行关键词提取,结果为:[\"营养\": 17, \"健康\": 15, \"维生素\": 12, \"矿物质\": 10, \"膳食纤维\": 8]。请生成词云图。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "营养", "value": 17 }, + { "text": "健康", "value": 15 }, + { "text": "维生素", "value": 12 }, + { "text": "矿物质", "value": 10 }, + { "text": "膳食纤维", "value": 8 } + ] + } + }, + { + "type": "data2chart", + "question": "对一个技术博客进行关键词分析,得到的数据是 [{ \"label\": \"编程\", \"value\": 30 }, { \"label\": \"算法\", \"value\": 25 }, { \"label\": \"数据库\", \"value\": 20 }, { \"label\": \"前端\", \"value\": 15 }, { \"label\": \"后端\", \"value\": 10 }],请使用词云图来表示这些数据。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "编程", "value": 30 }, + { "text": "算法", "value": 25 }, + { "text": "数据库", "value": 20 }, + { "text": "前端", "value": 15 }, + { "text": "后端", "value": 10 } + ] + } + }, + { + "type": "data2chart", + "question": "对一篇关于人工智能的研究论文进行关键词分析,词频结果为:[\"人工智能\": 15, \"机器学习\": 12, \"算法\": 9, \"深度学习\": 8, \"数据集\": 7]。请用词云图来展示。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "人工智能", "value": 15 }, + { "text": "机器学习", "value": 12 }, + { "text": "算法", "value": 9 }, + { "text": "深度学习", "value": 8 }, + { "text": "数据集", "value": 7 } + ] + } + }, + { + "type": "data2chart", + "question": "根据我的数据:[{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":7.75434839431,\"label\":\"万物\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":6.89126871927,\"label\":\"事物\"},{\"value\":11.739204307083542,\"label\":\"会变\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":8.70772080109,\"label\":\"认知\"},{\"value\":13.68728134056,\"label\":\"元素\"},{\"value\":8.29487558568,\"label\":\"世间\"},{\"value\":8.77077893705,\"label\":\"肉眼\"},{\"value\":8.10461990121,\"label\":\"大自然\"},{\"value\":7.69410172525,\"label\":\"粒子\"},{\"value\":7.65457088649,\"label\":\"分割\"},{\"value\":21.6192703972,\"label\":\"积木\"},{\"value\":10.7226238216,\"label\":\"永恒不变\"},{\"value\":7.14957618304,\"label\":\"原子\"},{\"value\":7.95787827685,\"label\":\"尺度\"},{\"value\":7.36109169636,\"label\":\"衡量\"},{\"value\":11.7034530746,\"label\":\"明辨是非\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":6.90950076485,\"label\":\"理性\"},{\"value\":12.06102341102,\"label\":\"模式\"},{\"value\":11.739204307083542,\"label\":\"理型\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":9.54656840164,\"label\":\"东西\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":34.45634359635,\"label\":\"事物\"},{\"value\":27.886522397969998,\"label\":\"感官\"},{\"value\":6.47412857958,\"label\":\"痛苦\"},{\"value\":6.06866347147,\"label\":\"避免\"},{\"value\":5.02315619812,\"label\":\"形式\"},{\"value\":4.80149232937,\"label\":\"方式\"},{\"value\":21.209681572,\"label\":\"万事万物\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":7.37711534583,\"label\":\"一体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":9.17328983326,\"label\":\"赦免\"},{\"value\":8.04274449749,\"label\":\"拯救\"},{\"value\":7.48068272383,\"label\":\"上帝\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":7.95787827685,\"label\":\"世人\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":11.67082488616,\"label\":\"创造\"},{\"value\":9.80633308975,\"label\":\"虚空\"},{\"value\":8.73505881114,\"label\":\"世界\"},{\"value\":16.57509909118,\"label\":\"启示\"},{\"value\":14.51638170122,\"label\":\"信仰\"},{\"value\":13.8190015297,\"label\":\"理性\"},{\"value\":10.5684731418,\"label\":\"观感\"},{\"value\":12.57964972316,\"label\":\"地球\"},{\"value\":12.45583951066,\"label\":\"太阳\"},{\"value\":11.39201164604,\"label\":\"运行\"},{\"value\":14.35128801962,\"label\":\"物体\"},{\"value\":11.18052531558,\"label\":\"状态\"},{\"value\":10.0505300503,\"label\":\"轴心\"},{\"value\":9.56994431169,\"label\":\"星球\"},{\"value\":9.29550746599,\"label\":\"感官\"},{\"value\":21.52693202943,\"label\":\"物体\"},{\"value\":7.36834335975,\"label\":\"宇宙\"},{\"value\":22.44204817149,\"label\":\"上帝\"},{\"value\":12.1089181827,\"label\":\"主宰世界\"},{\"value\":10.8096351986,\"label\":\"牵线\"},{\"value\":10.6818018271,\"label\":\"自然法则\"},{\"value\":18.59101493198,\"label\":\"感官\"},{\"value\":15.51728049278,\"label\":\"心灵\"},{\"value\":10.1394775363,\"label\":\"任何事物\"},{\"value\":14.95161725614,\"label\":\"哲学家\"},{\"value\":13.78796485028,\"label\":\"感受\"},{\"value\":10.3743171274,\"label\":\"天主\"},{\"value\":10.2117981979,\"label\":\"质料\"},{\"value\":9.14102377386,\"label\":\"存在\"},{\"value\":14.96136544766,\"label\":\"上帝\"},{\"value\":14.35850390238,\"label\":\"头顶\"},{\"value\":12.5143832909,\"label\":\"因果律\"},{\"value\":11.0674643079,\"label\":\"根植\"},{\"value\":16.20923980242,\"label\":\"大自然\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.3865516372,\"label\":\"物质\"},{\"value\":10.1164880181,\"label\":\"无休止\"},{\"value\":13.10258821671,\"label\":\"世界\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.1394775363,\"label\":\"脚踏实地\"},{\"value\":26.6063055869,\"label\":\"阶段\"},{\"value\":13.0408437271,\"label\":\"真实\"},{\"value\":10.48883682488,\"label\":\"是否\"},{\"value\":17.0798274558,\"label\":\"物质\"},{\"value\":11.739204307083542,\"label\":\"新的\"},{\"value\":11.23942650284,\"label\":\"精神\"},{\"value\":10.4471578861,\"label\":\"改变\"},{\"value\":10.21443458184,\"label\":\"造成\"},{\"value\":16.20923980242,\"label\":\"一艘\"},{\"value\":15.07529909688,\"label\":\"航行\"},{\"value\":11.739204307083542,\"label\":\"人则\"},{\"value\":11.7034530746,\"label\":\"物竞天择\"},{\"value\":10.5684731418,\"label\":\"适者生存\"},{\"value\":19.89886786678,\"label\":\"潜意识\"},{\"value\":12.76848869812,\"label\":\"意识\"}],请用词云图可视化。", + "answer": { + "type": "word-cloud", + "data": [ + { "value": 11.3865516372, "text": "物质" }, + { "value": 7.75434839431, "text": "万物" }, + { "value": 9.29550746599, "text": "感官" }, + { "value": 6.89126871927, "text": "事物" }, + { "value": 11.739204307083542, "text": "会变" }, + { "value": 9.29550746599, "text": "感官" }, + { "value": 8.70772080109, "text": "认知" }, + { "value": 13.68728134056, "text": "元素" }, + { "value": 8.29487558568, "text": "世间" }, + { "value": 8.77077893705, "text": "肉眼" }, + { "value": 8.10461990121, "text": "大自然" }, + { "value": 7.69410172525, "text": "粒子" }, + { "value": 7.65457088649, "text": "分割" }, + { "value": 21.6192703972, "text": "积木" }, + { "value": 10.7226238216, "text": "永恒不变" }, + { "value": 7.14957618304, "text": "原子" }, + { "value": 7.95787827685, "text": "尺度" }, + { "value": 7.36109169636, "text": "衡量" }, + { "value": 11.7034530746, "text": "明辨是非" }, + { "value": 9.14102377386, "text": "存在" }, + { "value": 6.90950076485, "text": "理性" }, + { "value": 12.06102341102, "text": "模式" }, + { "value": 11.739204307083542, "text": "理型" }, + { "value": 11.3865516372, "text": "物质" }, + { "value": 9.54656840164, "text": "东西" }, + { "value": 8.73505881114, "text": "世界" }, + { "value": 34.45634359635, "text": "事物" }, + { "value": 27.886522397969998, "text": "感官" }, + { "value": 6.47412857958, "text": "痛苦" }, + { "value": 6.06866347147, "text": "避免" }, + { "value": 5.02315619812, "text": "形式" }, + { "value": 4.80149232937, "text": "方式" }, + { "value": 21.209681572, "text": "万事万物" }, + { "value": 7.48068272383, "text": "上帝" }, + { "value": 7.37711534583, "text": "一体" }, + { "value": 7.36834335975, "text": "宇宙" }, + { "value": 9.17328983326, "text": "赦免" }, + { "value": 8.04274449749, "text": "拯救" }, + { "value": 7.48068272383, "text": "上帝" }, + { "value": 14.96136544766, "text": "上帝" }, + { "value": 7.95787827685, "text": "世人" }, + { "value": 14.96136544766, "text": "上帝" }, + { "value": 11.67082488616, "text": "创造" }, + { "value": 9.80633308975, "text": "虚空" }, + { "value": 8.73505881114, "text": "世界" }, + { "value": 16.57509909118, "text": "启示" }, + { "value": 14.51638170122, "text": "信仰" }, + { "value": 13.8190015297, "text": "理性" }, + { "value": 10.5684731418, "text": "观感" }, + { "value": 12.57964972316, "text": "地球" }, + { "value": 12.45583951066, "text": "太阳" }, + { "value": 11.39201164604, "text": "运行" }, + { "value": 14.35128801962, "text": "物体" }, + { "value": 11.18052531558, "text": "状态" }, + { "value": 10.0505300503, "text": "轴心" }, + { "value": 9.56994431169, "text": "星球" }, + { "value": 9.29550746599, "text": "感官" }, + { "value": 21.52693202943, "text": "物体" }, + { "value": 7.36834335975, "text": "宇宙" }, + { "value": 22.44204817149, "text": "上帝" }, + { "value": 12.1089181827, "text": "主宰世界" }, + { "value": 10.8096351986, "text": "牵线" }, + { "value": 10.6818018271, "text": "自然法则" }, + { "value": 18.59101493198, "text": "感官" }, + { "value": 15.51728049278, "text": "心灵" }, + { "value": 10.1394775363, "text": "任何事物" }, + { "value": 14.95161725614, "text": "哲学家" }, + { "value": 13.78796485028, "text": "感受" }, + { "value": 10.3743171274, "text": "天主" }, + { "value": 10.2117981979, "text": "质料" }, + { "value": 9.14102377386, "text": "存在" }, + { "value": 14.96136544766, "text": "上帝" }, + { "value": 14.35850390238, "text": "头顶" }, + { "value": 12.5143832909, "text": "因果律" }, + { "value": 11.0674643079, "text": "根植" }, + { "value": 16.20923980242, "text": "大自然" }, + { "value": 13.10258821671, "text": "世界" }, + { "value": 11.3865516372, "text": "物质" }, + { "value": 10.1164880181, "text": "无休止" }, + { "value": 13.10258821671, "text": "世界" }, + { "value": 11.23942650284, "text": "精神" }, + { "value": 10.1394775363, "text": "脚踏实地" }, + { "value": 26.6063055869, "text": "阶段" }, + { "value": 13.0408437271, "text": "真实" }, + { "value": 10.48883682488, "text": "是否" }, + { "value": 17.0798274558, "text": "物质" }, + { "value": 11.739204307083542, "text": "新的" }, + { "value": 11.23942650284, "text": "精神" }, + { "value": 10.4471578861, "text": "改变" }, + { "value": 10.21443458184, "text": "造成" }, + { "value": 16.20923980242, "text": "一艘" }, + { "value": 15.07529909688, "text": "航行" }, + { "value": 11.739204307083542, "text": "人则" }, + { "value": 11.7034530746, "text": "物竞天择" }, + { "value": 10.5684731418, "text": "适者生存" }, + { "value": 19.89886786678, "text": "潜意识" }, + { "value": 12.76848869812, "text": "意识" } + ] + } + } +] diff --git a/evaluations/prompts/area/data2chart.md b/evaluations/prompts/area/data2chart.md new file mode 100644 index 0000000..1b379cf --- /dev/null +++ b/evaluations/prompts/area/data2chart.md @@ -0,0 +1,81 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成面积图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成面积图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用面积图可视化我的数据 `[{ "year": 2015,"value": 7200.0 },{ "year": 2016, "value": 3660.0 },{ "year": 2017 ,"value": 4100.0 }]`,图表的 Spec 为:” +2. 根据可视化相关问题,生成面积图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 面积图图表知识库 + +### 图表属性 + +```typescript +type Area = { + type: 'area'; + data: { time: string | number; value: number; group?: string }[]; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "area"。 +- data:图表的数据,必填,数组对象类型; + - time:数据的时序名称,必填,文本或数值类型; + - value:数据的值,必填,数值类型; + - group:数据分组名称,选填,文本类型; +- stack:是否开启堆叠,开启堆叠面积图需数据中含有 group 字段,选填,布尔类型。 +- title: 图表的标题,选填,文本类型。 +- axisXTitle:x 轴的标题,选填,文本类型。 +- axisYTitle:y 轴的标题,选填,文本类型。 + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "用面积图可视化我的数据 [{ \"year\": 2015,\"value\": 7200.0 },{ \"year\": 2016, \"value\": 3660.0 },{ \"year\": 2017 ,\"value\": 4100.0 }]", + "answer": { + "type": "area", + "data": [ + { "time": 2015, "value": 7200 }, + { "time": 2016, "value": 3660 }, + { "time": 2017, "value": 4100 } + ], + "axisXTitle": "year", + "axisYTitle": "value" + } + }, + { + "type": "data2chart", + "question": "用堆叠面积图可视化我的数据 [{\"year\": \"2018\" , \"value\": 825.6, \"country\": \"Asia\" }, {\"year\": \"2018\" , \"value\": 60.2, \"country\": \"Europe\" }, {\"year\": \"2019\" , \"value\": 450, \"country\": \"Asia\" }, {\"year\": \"2019\" , \"value\": 95, \"country\": \"Europe\" }, {\"year\": \"2020\" , \"value\": 506, \"country\": \"Asia\" }, {\"year\": \"2020\" , \"value\": 76.7, \"country\": \"Europe\" }, {\"year\": \"2021\" , \"value\": 976.6, \"country\": \"Asia\" }, {\"year\": \"2021\" , \"value\": 97.2, \"country\": \"Europe\" }]", + "answer": { + "type": "area", + "data": [ + { "time": 2018, "value": 825.6, "group": "Asia" }, + { "time": 2018, "value": 60.2, "group": "Europe" }, + { "time": 2019, "value": 450, "group": "Asia" }, + { "time": 2019, "value": 95, "group": "Europe" }, + { "time": 2020, "value": 506, "group": "Asia" }, + { "time": 2020, "value": 76.7, "group": "Europe" }, + { "time": 2021, "value": 976.6, "group": "Asia" }, + { "time": 2021, "value": 97.2, "group": "Europe" } + ], + "stack": true, + "axisXTitle": "year", + "axisYTitle": "value" + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/area/text2chart.md b/evaluations/prompts/area/text2chart.md new file mode 100644 index 0000000..aa8ab1c --- /dev/null +++ b/evaluations/prompts/area/text2chart.md @@ -0,0 +1,90 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成面积图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成面积图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “每月的股票价格的变化,1 月份股票价格为 23.895,2 月份股票价格为 23.695,3 月份股票价格为 23.655。用面积图可视化,图表的 Spec 为:” +2. 根据可视化相关问题,生成面积图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 面积图图表知识库 + +### 图表属性 + +```typescript +type Area = { + type: 'area'; + data: { time: string | number; value: number; group?: string }[]; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "area"。 +- data:图表的数据,必填,数组对象类型; + - time:数据的时序名称,必填,文本或数值类型; + - value:数据的值,必填,数值类型; + - group:数据分组名称,选填,文本类型; +- stack:是否开启堆叠,开启堆叠面积图需数据中含有 group 字段,选填,布尔类型。 +- title: 图表的标题,选填,文本类型。 +- axisXTitle:x 轴的标题,选填,文本类型。 +- axisYTitle:y 轴的标题,选填,文本类型。 + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "每月的股票价格的变化,1 月份股票价格为 23.895,2 月份股票价格为 23.695,3 月份股票价格为 23.655。用面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "1 月", "value": 23.895 }, + { "time": "2 月", "value": 23.695 }, + { "time": "3 月", "value": 23.655 } + ], + "title": "1月到3月股票价格的变化", + "axisXTitle": "月份", + "axisYTitle": "价格" + } + }, + { + "type": "text2chart", + "question": "在某项研究中,2019 年到 2023 年中三个城市的空气污染指数变化如下:北京分别为 150,160,145,155,165;广州分别为 100,110,105,115,120;上海分别为 90,85,80,75,70。堆叠面积图可视化", + "answer": { + "type": "area", + "data": [ + { "time": "2019年", "value": 150, "group": "北京" }, + { "time": "2020年", "value": 160, "group": "北京" }, + { "time": "2021年", "value": 145, "group": "北京" }, + { "time": "2022年", "value": 155, "group": "北京" }, + { "time": "2023年", "value": 165, "group": "北京" }, + { "time": "2019年", "value": 100, "group": "广州" }, + { "time": "2020年", "value": 110, "group": "广州" }, + { "time": "2021年", "value": 105, "group": "广州" }, + { "time": "2022年", "value": 115, "group": "广州" }, + { "time": "2023年", "value": 120, "group": "广州" }, + { "time": "2019年", "value": 90, "group": "上海" }, + { "time": "2020年", "value": 85, "group": "上海" }, + { "time": "2021年", "value": 80, "group": "上海" }, + { "time": "2022年", "value": 75, "group": "上海" }, + { "time": "2023年", "value": 70, "group": "上海" } + ], + "stack": true, + "title": "城市空气污染指数变化", + "axisXTitle": "年份", + "axisYTitle": "空气污染指数" + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/bar/data2chart.md b/evaluations/prompts/bar/data2chart.md new file mode 100644 index 0000000..e31cd92 --- /dev/null +++ b/evaluations/prompts/bar/data2chart.md @@ -0,0 +1,66 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成条形图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成条形图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用分组条形图可视化我不同季度的销售数据,数据如下:{ 'Q1': { '2020': 10000, '2021': 12000 }, 'Q2': { '2020': 15000, '2021': 18000 }, 'Q3': { '2020': 20000, '2021': 25000 }, 'Q4': { '2020': 25000, '2021': 30000 } }” +2. 根据可视化相关问题,生成条形图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 条形图图表知识库 + +### 图表属性 + +```typescript +type Bar = { + type: 'bar'; + data: { category: string; value: number; group?: string }[]; + group?: boolean; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "bar"。 +- data:图表的数据,必填,数组对象类型; + - category:数据分类名称,必填,文本或数值类型; + - value:数据分类值,必填,数值类型; + - group: 数据分组名称,选填,文本类型; +- group:是否开启分组,开启分组条形图需数据中含有 group 字段 ,选填,布尔类型。 +- stack:是否开启堆叠,开启堆叠条形图需数据中含有 group 字段,选填,布尔类型。 + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "用分组条形图可视化我不同季度的销售数据,数据如下:{ 'Q1': { '2020': 10000, '2021': 12000 }, 'Q2': { '2020': 15000, '2021': 18000 }, 'Q3': { '2020': 20000, '2021': 25000 }, 'Q4': { '2020': 25000, '2021': 30000 } }", + "answer": { + "type": "bar", + "data": [ + { "category": "2020", "value": 10000, "group": "Q1" }, + { "category": "2021", "value": 12000, "group": "Q1" }, + { "category": "2020", "value": 15000, "group": "Q2" }, + { "category": "2021", "value": 18000, "group": "Q2" }, + { "category": "2020", "value": 20000, "group": "Q3" }, + { "category": "2021", "value": 25000, "group": "Q3" }, + { "category": "2020", "value": 25000, "group": "Q4" }, + { "category": "2021", "value": 30000, "group": "Q4" } + ], + "group": true, + "axisXTitle": "年份", + "axisYTitle": "售量" + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/bar/text2chart.md b/evaluations/prompts/bar/text2chart.md new file mode 100644 index 0000000..b4f589e --- /dev/null +++ b/evaluations/prompts/bar/text2chart.md @@ -0,0 +1,69 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成条形图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成条形图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “主要城市油车与新能源汽车的售卖量对比,北京分别是 825.6 万辆 与 60.2 万辆,上海分别是 450 万辆 与 95 万辆,深圳分别是 506 万辆 与 76.7 万辆,广州分别是 976.6 万辆 与 97.2 万辆,杭州分别是 651.2 万辆 与 62 万辆。用堆叠条形图可视化” +2. 根据可视化相关问题,生成条形图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 条形图图表知识库 + +### 图表属性 + +```typescript +type Bar = { + type: 'bar'; + data: { category: string; value: number; group?: string }[]; + group?: boolean; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "bar"。 +- data:图表的数据,必填,数组对象类型; + - category:数据分类名称,必填,文本或数值类型; + - value:数据分类值,必填,数值类型; + - group: 数据分组名称,选填,文本类型; +- group:是否开启分组,开启分组条形图需数据中含有 group 字段 ,选填,布尔类型。 +- stack:是否开启堆叠,开启堆叠条形图需数据中含有 group 字段,选填,布尔类型。 + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "主要城市油车与新能源汽车的售卖量对比,北京分别是 825.6 万辆 与 60.2 万辆,上海分别是 450 万辆 与 95 万辆,深圳分别是 506 万辆 与 76.7 万辆,广州分别是 976.6 万辆 与 97.2 万辆,杭州分别是 651.2 万辆 与 62 万辆。用堆叠条形图可视化", + "answer": { + "type": "bar", + "data": [ + { "category": "北京", "value": 825.6, "group": "油车" }, + { "category": "北京", "value": 60.2, "group": "新能源汽车" }, + { "category": "上海", "value": 450, "group": "油车" }, + { "category": "上海", "value": 95, "group": "新能源汽车" }, + { "category": "深圳", "value": 506, "group": "油车" }, + { "category": "深圳", "value": 76.7, "group": "新能源汽车" }, + { "category": "广州", "value": 976.6, "group": "油车" }, + { "category": "广州", "value": 97.2, "group": "新能源汽车" }, + { "category": "杭州", "value": 651.2, "group": "油车" }, + { "category": "杭州", "value": 62, "group": "新能源汽车" } + ], + "stack": true, + "title": "主要城市油车与新能源汽的售卖量", + "axisXTitle": "城市", + "axisYTitle": "售卖量 (万辆)" + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/heat-map/data2chart.md b/evaluations/prompts/heat-map/data2chart.md new file mode 100644 index 0000000..6bc27f0 --- /dev/null +++ b/evaluations/prompts/heat-map/data2chart.md @@ -0,0 +1,52 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成热力地图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成热力地图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用热力地图显示我的数据 [{"longitude":121.449895,"latitude":31.228609,"intensity":500},{"longitude":121.449486,"latitude":31.222042,"intensity":900},{"longitude":121.431826,"latitude":31.204638,"intensity":400},{"longitude":121.448453,"latitude":31.222341,"intensity":300}]” +2. 根据可视化相关问题,生成热力地图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 热力地图图表知识库 + +### 地图属性 + +```typescript +type HeatMap = { + type: 'heat-map'; + data: { longitude: number; latitude: number; value: number }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "heat-map" +- data:热力地图的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - value:数据的强度或密度,必填,数值类型; + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "用热力地图显示我的数据 [{\"longitude\":121.449895,\"latitude\":31.228609,\"intensity\":500},{\"longitude\":121.449486,\"latitude\":31.222042,\"intensity\":900},{\"longitude\":121.431826,\"latitude\":31.204638,\"intensity\":400},{\"longitude\":121.448453,\"latitude\":31.222341,\"intensity\":300}]", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 121.449895, "latitude": 31.228609, "value": 500 }, + { "longitude": 121.449486, "latitude": 31.222042, "value": 900 }, + { "longitude": 121.431826, "latitude": 31.204638, "value": 400 }, + { "longitude": 121.448453, "latitude": 31.222341, "value": 300 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/heat-map/text2chart.md b/evaluations/prompts/heat-map/text2chart.md new file mode 100644 index 0000000..cc92bbe --- /dev/null +++ b/evaluations/prompts/heat-map/text2chart.md @@ -0,0 +1,51 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成热力地图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成热力地图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “用热力图在地图上显示杭州市交通事故频发次数。” +2. 根据可视化相关问题,生成热力地图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 热力地图图表知识库 + +### 地图属性 + +```typescript +type HeatMap = { + type: 'heat-map'; + data: { longitude: number; latitude: number; value: number }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "heat-map" +- data:热力地图的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - value:数据的强度或密度,必填,数值类型; + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "用热力图在地图显示,国庆节在上海市、杭州、苏州的游客量。", + "answer": { + "type": "heat-map", + "data": [ + { "longitude": 121.474856, "latitude": 31.249162, "value": 800 }, + { "longitude": 121.449895, "latitude": 31.228609, "value": 500 }, + { "longitude": 121.449486, "latitude": 31.222042, "value": 900 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/pie/data2chart.md b/evaluations/prompts/pie/data2chart.md new file mode 100644 index 0000000..5e24e9b --- /dev/null +++ b/evaluations/prompts/pie/data2chart.md @@ -0,0 +1,54 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成饼图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成饼图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用饼图可视化我的数据 [{ "title": "第一产业","industrial": 7200.0 },{ "title": "第二产业", "industrial": 36600.0 },{ "title": "第三产业" ,"industrial": 41000.0 }]” +2. 根据可视化相关问题,生成饼图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 饼图图表知识库 + +### 图表属性 + +```typescript +type Pie = { + type: 'pie'; + data: { category: string; value: number }[]; + innerRadius?: number; + title?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "pie"。 +- data:图表的数据,必填,数组对象类型; + - category: 数据分类的名称,必填,文本类型; + - value:数据的值,必填,数值类型,不可以使用百分比数字; +- innerRadius:将饼图设置为环图,选填,数值类型,当需要开启为环图时,可设置值为 0.6。 +- title: 图表的标题,选填,文本类型 + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "用饼图可视化我的数据 [{ \"title\": \"第一产业\",\"industrial\": 7200.0 },{ \"title\": \"第二产业\", \"industrial\": 36600.0 },{ \"title\": \"第三产业\" ,\"industrial\": 41000.0 }]", + "answer": { + "type": "bar", + "data": [ + { "category": "第一产业", "value": 7200 }, + { "category": "第二产业", "value": 36600 }, + { "category": "第三产业", "value": 41000 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/pie/text2chart.md b/evaluations/prompts/pie/text2chart.md new file mode 100644 index 0000000..b46c613 --- /dev/null +++ b/evaluations/prompts/pie/text2chart.md @@ -0,0 +1,69 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成饼图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成饼图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “根据预测,专家估计到 2030 年这些国家 GDP 将达到,美国 GDP 750 万亿,印度 GDP 420 万亿,英国 GDP 420 万亿,中国 GDP 700 万亿。用条形图可视化” +2. 根据可视化相关问题,生成饼图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 饼图图表知识库 + +### 图表属性 + +```typescript +type Pie = { + type: 'pie'; + data: { category: string; value: number }[]; + innerRadius?: number; + title?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "pie"。 +- data:图表的数据,必填,数组对象类型; + - category: 数据分类的名称,必填,文本类型; + - value:数据的值,必填,数值类型,不可以使用百分比数字; +- innerRadius:将饼图设置为环图,选填,数值类型,当需要开启为环图时,可设置值为 0.6。 +- title: 图表的标题,选填,文本类型 + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "根据预测,专家估计到 2030 年这些国家 GDP 将达到,美国 GDP 750 万亿,印度 GDP 420 万亿,英国 GDP 420 万亿,中国 GDP 700 万亿。用条形图可视化", + "answer": { + "type": "pie", + "data": [ + { "category": "美国", "value": 750 }, + { "category": "印度", "value": 420 }, + { "category": "英国", "value": 900 }, + { "category": "中国", "value": 700 } + ], + "title": "预计 2030 GDP" + } + }, + { + "type": "text2chart", + "question": "全国人口中居住在城镇的人口占比为 63.89%,居住在乡村的人口占比为 36.11%。用环图展示数据", + "answer": { + "type": "pie", + "data": [ + { "category": "城镇人口", "value": 63.89 }, + { "category": "乡村人口", "value": 36.11 } + ], + "innerRadius": 0.6, + "title": "全国人口居住对比" + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/pin-map/data2chart.md b/evaluations/prompts/pin-map/data2chart.md new file mode 100644 index 0000000..8ddfd16 --- /dev/null +++ b/evaluations/prompts/pin-map/data2chart.md @@ -0,0 +1,62 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成点标注地图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成点标注地图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “用点标注地图可视化我的数据 [{ "location": [116.3974, 39.9087], "label": "北京", "information": "中国的首都" },{ "location": [121.4737, 31.2304], "label": "上海", "information": "中国的经济中心" }]” +2. 根据可视化相关问题,生成点标注地图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 点标注地图图表知识库 + +### 地图属性 + +```typescript +type PinMap = { + type: 'pin-map'; + data: { longitude: number; latitude: number; label: string }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "pin-map" +- data:地图点标注的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - label:地点的标签,描述地点的信息,必填,文本类型; + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ \"location\": [116.3974, 39.9087], \"label\": \"北京\", \"information\": \"中国的首都\" },{ \"location\": [121.4737, 31.2304], \"label\": \"上海\", \"information\": \"中国的经济中心\" }]", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 120.153576, "latitude": 30.287459, "label": "杭州" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] + } + }, + { + "type": "data2chart", + "question": "用点标注地图可视化我的数据 [{ title: '杨梅岭', longitude: 120.118362, latitude: 30.217175 },{ title: '理安寺', longitude: 120.112958, latitude: 30.207319 },{ title: '九溪烟树', longitude: 120.11335, latitude: 30.202395 }]", + "answer": { + "type": "pin-map", + "data": [ + { "label": "杨梅岭", "longitude": 120.118362, "latitude": 30.217175 }, + { "label": "理安寺", "longitude": 120.112958, "latitude": 30.207319 }, + { "label": "九溪烟树", "longitude": 120.11335, "latitude": 30.202395 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/pin-map/text2chart.md b/evaluations/prompts/pin-map/text2chart.md new file mode 100644 index 0000000..50715dd --- /dev/null +++ b/evaluations/prompts/pin-map/text2chart.md @@ -0,0 +1,62 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成点标注地图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成点标注地图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “在地图上标注我旅行地杭州和上海。” +2. 根据可视化相关问题,生成点标注地图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 点标注地图图表知识库 + +### 地图属性 + +```typescript +type PinMap = { + type: 'pin-map'; + data: { longitude: number; latitude: number; label: string }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "pin-map" +- data:地图点标注的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - label:地点的标签,描述地点的信息,必填,文本类型; + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "在地图上标注我旅行地杭州和上海。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 120.153576, "latitude": 30.287459, "label": "杭州" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] + } + }, + { + "type": "text2chart", + "question": "用点标注地图展示沿海城市的人口分布情况。", + "answer": { + "type": "pin-map", + "data": [ + { "longitude": 121.549792, "latitude": 29.868388, "label": "宁波人口:51 万" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海人口:151 万" }, + { "longitude": 120.672111, "latitude": 28.000575, "label": "温州人口:67 万" } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/word-cloud/data2chart.md b/evaluations/prompts/word-cloud/data2chart.md new file mode 100644 index 0000000..4b89052 --- /dev/null +++ b/evaluations/prompts/word-cloud/data2chart.md @@ -0,0 +1,64 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成词云图相关的可视化问答对数据。 + +## 任务 + +1. 结合可视化场景,随机生成词云图相关的可视化数据,主要内容为可视化的数据和用什么可视化图表,比如: “分析一篇文章的关键词,生成词云图。数据为 [{ "text": "数据", "value": 50 }, { "text": "分析", "value": 40 }, { "text": "结果", "value": 30 }],图表的 Spec 为:” +2. 根据可视化相关问题,生成词云图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 词云图图表知识库 + +### 图表属性 + +```typescript +type WordCloud = { + type: 'word-cloud'; + data: { text: string; value: number }[]; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "word-cloud"。 +- data:图表的数据,必填,数组对象类型; + - text: 代表将要在词云中显示的具体词汇,必填,字符串类型; + - value:表示这个词汇的重要性分数(可以是频次、权重等),必填,数值类型; + +## 参考例子 + +```json +[ + { + "type": "data2chart", + "question": "分析一篇关于环保的文章,提取关键词及其频率,结果为:[\"环保\": 10, \"气候变化\": 8, \"可再生能源\": 6, \"碳排放\": 5, \"绿色生活\": 4]。用词云图可视化", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "环保", "value": 10 }, + { "text": "气候变化", "value": 8 }, + { "text": "可再生能源", "value": 6 }, + { "text": "碳排放", "value": 5 }, + { "text": "绿色生活", "value": 4 } + ] + } + }, + { + "type": "data2chart", + "question": "分析一篇文章的关键词,生成词云图。数据为 [{ \"text\": \"数据\", \"value\": 50 }, { \"text\": \"分析\", \"value\": 40 }, { \"text\": \"结果\", \"value\": 30 }],图表的 Spec 为:", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "数据", "value": 50 }, + { "text": "分析", "value": 40 }, + { "text": "结果", "value": 30 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git a/evaluations/prompts/word-cloud/text2chart.md b/evaluations/prompts/word-cloud/text2chart.md new file mode 100644 index 0000000..935179b --- /dev/null +++ b/evaluations/prompts/word-cloud/text2chart.md @@ -0,0 +1,76 @@ +## 角色 + +你是一个 mock 图表数据生成器,生成词云图相关的可视化问答对数据。 + +## 任务 + +1. 随机结合可视化场景,生成词云图相关的可视化问题,用自然语言纯文本描述,主要内容为数据描述和用什么可视化图表,比如: “根据一篇关于环境保护的文章生成词云图,其中“环境”出现了 20 次,“保护”出现了 15 次,“可持续发展”出现了 10 次。” +2. 根据可视化相关问题,生成词云图图表的配置 +3. 以 JSON 格式归纳为一条问答对数据,{"question": <可视化问题>,"answer": <图表的配置>} + +## 词云图图表知识库 + +### 图表属性 + +```typescript +type WordCloud = { + type: 'word-cloud'; + data: { text: string; value: number }[]; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "word-cloud"。 +- data:图表的数据,必填,数组对象类型; + - text: 代表将要在词云中显示的具体词汇,必填,字符串类型; + - value:表示这个词汇的重要性分数(可以是频次、权重等),必填,数值类型; + +## 参考例子 + +```json +[ + { + "type": "text2chart", + "question": "根据一篇关于环境保护的文章生成词云图可视化,其中“环境”出现了 20 次,“保护”出现了 15 次,“可持续发展”出现了 10 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "环境", "value": 20 }, + { "text": "保护", "value": 15 }, + { "text": "可持续发展", "value": 10 } + ] + } + }, + { + "type": "text2chart", + "question": "从一系列产品评价中提取关键字并创建词云图可视化,“质量好”被提到 30 次,“价格合理”被提到了 20 次,“服务差”被提及了 5 次。", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "质量好", "value": 30 }, + { "text": "价格合理", "value": 20 }, + { "text": "服务差", "value": 5 } + ] + } + }, + { + "type": "text2chart", + "question": "分析一篇关于环保的文章,提取关键词及其频率,结果为:[\"环保\": 10, \"气候变化\": 8, \"可再生能源\": 6, \"碳排放\": 5, \"绿色生活\": 4]。用词云图可视化", + "answer": { + "type": "word-cloud", + "data": [ + { "text": "环保", "value": 10 }, + { "text": "气候变化", "value": 8 }, + { "text": "可再生能源", "value": 6 }, + { "text": "碳排放", "value": 5 }, + { "text": "绿色生活", "value": 4 } + ] + } + } +] +``` + +## 要求 + +- 请生成 5 条这样的记录,并以 JSON 格式输出。 diff --git "a/knowledges/\346\235\241\345\275\242\345\233\276 - Bar Chart.md" "b/knowledges/\346\235\241\345\275\242\345\233\276 - Bar Chart.md" new file mode 100644 index 0000000..ad2d4bc --- /dev/null +++ "b/knowledges/\346\235\241\345\275\242\345\233\276 - Bar Chart.md" @@ -0,0 +1,150 @@ +## 图表属性 + +- 名称:条形图 +- 别名:条形图,英文名:Bar Chart +- 形状:条形 +- 图表类别:统计图表 +- 图表功能:比较、分布、排名 + +## 基础概念 + +条形图是一种使用水平矩形条对不同类别进行数值比较的统计图表。与柱状图不同的是,条形图的矩形条是从左到右排列的,而不是从下到上。条形图同样需要一个分类变量和一个数值变量。在条形图上,分类变量的每个实体被表示为一个水平矩形条,而数值决定了矩形条的长度。 + +## 适用场景 + +条形图适合对分类数据进行比较,尤其是在分类名称较长,或当分类项数量较多的情况下,由于条形图的水平排列更便于显示这些类别。此外,条形图也更适合横向对比。 + +## 不适用场景 + +条形图不适合用于显示连续型变量之间的关系,且不适用于需要强调数值变化趋势时,因为条形图的重点在于分类间的比较。 + +## 图表用法 + +### 图表属性 + +```typescript +type Bar = { + type: 'bar'; + data: { category: string; value: number; group?: string }[]; + group?: boolean; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "bar"。 +- data:图表的数据,必填,数组对象类型; + - category:数据分类名称,必填,文本或数值类型; + - value:数据分类值,必填,数值类型; + - group: 数据分组名称,选填,文本类型; +- group:是否开启分组,开启分组条形图需数据中含有 group 字段 ,选填,布尔类型。 +- stack:是否开启堆叠,开启堆叠条形图需数据中含有 group 字段,选填,布尔类型。 +- title: 图表的标题,选填,文本类型。 +- axisXTitle:x 轴的标题,选填,文本类型。 +- axisYTitle:y 轴的标题,选填,文本类型。 + +## 使用示例 + +1. 海底捞公司外卖收入的变化,2015 年收入金额 80 百万元,2016 年收入金额 140 百万元,2017 年收入金额 220 百万元。用条形图可视化。 + +```json +{ + "type": "bar", + "data": [ + { "category": "2015 年", "value": 80 }, + { "category": "2016 年", "value": 140 }, + { "category": "2017 年", "value": 220 } + ], + "title": "海底捞公司外卖收入", + "axisXTitle": "年份", + "axisYTitle": "金额 (百万元)" +} +``` + +2. 用条形图可视化我的数据 [{ "name": "第一产业","industrial": 7200.0 },{ "name": "第二产业", "industrial": 36600.0 },{ "title": "第三产业" ,"industrial": 41000.0 }]。 + +```json +{ + "type": "bar", + "data": [ + { "category": "第一产业", "value": 7200.0 }, + { "category": "第二产业", "value": 36600.0 }, + { "category": "第三产业", "value": 41000.0 } + ], + "axisXTitle": "name", + "axisYTitle": "industrial" +} +``` + +3. 主要城市油车与新能源汽车的售卖量对比,北京分别是 825.6 万辆 与 60.2 万辆,上海分别是 450 万辆 与 95 万辆,深圳分别是 506 万辆 与 76.7 万辆,广州分别是 976.6 万辆 与 97.2 万辆,杭州分别是 651.2 万辆 与 62 万辆。用分组条形图可视化。 + +```json +{ + "type": "bar", + "data": [ + { "category": "北京", "value": 825.6, "group": "油车" }, + { "category": "北京", "value": 60.2, "group": "新能源汽车" }, + { "category": "上海", "value": 450, "group": "油车" }, + { "category": "上海", "value": 95, "group": "新能源汽车" }, + { "category": "深圳", "value": 506, "group": "油车" }, + { "category": "深圳", "value": 76.7, "group": "新能源汽车" }, + { "category": "广州", "value": 976.6, "group": "油车" }, + { "category": "广州", "value": 97.2, "group": "新能源汽车" }, + { "category": "杭州", "value": 651.2, "group": "油车" }, + { "category": "杭州", "value": 62, "group": "新能源汽车" } + ], + "group": true, + "title": "油车与新能源汽车售卖量", + "axisXTitle": "城市", + "axisYTitle": "售卖量 (万辆)" +} +``` + +4. 主要城市油车与新能源汽车的售卖量对比,北京分别是 825.6 万辆 与 60.2 万辆,上海分别是 450 万辆 与 95 万辆,深圳分别是 506 万辆 与 76.7 万辆,广州分别是 976.6 万辆 与 97.2 万辆,杭州分别是 651.2 万辆 与 62 万辆。用堆叠条形图可视化。 + +```json +{ + "type": "bar", + "data": [ + { "category": "北京", "value": 825.6, "group": "油车" }, + { "category": "北京", "value": 60.2, "group": "新能源汽车" }, + { "category": "上海", "value": 450, "group": "油车" }, + { "category": "上海", "value": 95, "group": "新能源汽车" }, + { "category": "深圳", "value": 506, "group": "油车" }, + { "category": "深圳", "value": 76.7, "group": "新能源汽车" }, + { "category": "广州", "value": 976.6, "group": "油车" }, + { "category": "广州", "value": 97.2, "group": "新能源汽车" }, + { "category": "杭州", "value": 651.2, "group": "油车" }, + { "category": "杭州", "value": 62, "group": "新能源汽车" } + ], + "stack": true, + "title": "油车与新能源汽车售卖量", + "axisXTitle": "城市", + "axisYTitle": "售卖量 (万辆)" +} +``` + +5. 用分组柱形图可视化我不同季度的销售数据,数据如下:{ 'Q1': { '2020': 10000, '2021': 12000 }, 'Q2': { '2020': 15000, '2021': 18000 }, 'Q3': { '2020': 20000, '2021': 25000 }, 'Q4': { '2020': 25000, '2021': 30000 } }。 + +```json +{ + "type": "bar", + "data": [ + { "category": "2020", "value": 10000, "group": "Q1" }, + { "category": "2021", "value": 12000, "group": "Q1" }, + { "category": "2020", "value": 15000, "group": "Q2" }, + { "category": "2021", "value": 18000, "group": "Q2" }, + { "category": "2020", "value": 20000, "group": "Q3" }, + { "category": "2021", "value": 25000, "group": "Q3" }, + { "category": "2020", "value": 25000, "group": "Q4" }, + { "category": "2021", "value": 30000, "group": "Q4" } + ], + "group": true, + "axisXTitle": "年份", + "axisYTitle": "售量" +} +``` diff --git "a/knowledges/\347\202\271\346\240\207\346\263\250\345\234\260\345\233\276 - PinMap.md" "b/knowledges/\347\202\271\346\240\207\346\263\250\345\234\260\345\233\276 - PinMap.md" new file mode 100644 index 0000000..797da38 --- /dev/null +++ "b/knowledges/\347\202\271\346\240\207\346\263\250\345\234\260\345\233\276 - PinMap.md" @@ -0,0 +1,102 @@ +## 图表属性 + +- 名称:点标注地图 +- 别名:标注地图,英文名:Pin Map、Scatter Map、 Dot Map、Point Annotation Map +- 图表类型:地图 +- 图表功能:空间、分布 + +## 基础概念 + +点标注地图是一种将地理数据以点的形式标注在地图上的可视化图表。每个点代表一个特定的位置数据,并为其提供标签加以描述,如商店位置、事件发生地点、景点分布等。点标注地图便于用户直观地定位和查看与地点相关的数据。 + +从数据上来说,点标注地图至少需要地理位置的经度和纬度数据,一般还可以有标签字段对该点位进行描述。 + +## 适用场景 + +- 显示商店、餐厅、景点等地理位置数据。 +- 可视化事件发生地点,如地震、火灾、交通事故等。 +- 展示地理信息,如人口密集区、气候分布、地貌特征等。 + +## 不适用场景 + +- 城市或地区整体地理信息的呈现,应使用地图区域统计图表。 +- 对地理范围内的数据分布进行精确分析时,应考虑使用热力图等更加细致的可视化图表。 + +## 图表用法 + +### 地图属性 + +```typescript +type PinMap = { + type: 'pin-map'; + data: { longitude: number; latitude: number; label: string }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "pin-map" +- data:地图点标注的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - label:地点的标签,描述地点的信息,必填,文本类型; + +## 使用示例 + +1. 在地图上标注我旅行地杭州和上海。 + +```json +{ + "type": "pin-map", + "data": [ + { "longitude": 120.153576, "latitude": 30.287459, "label": "杭州" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] +} +``` + +2. 用点标注地图展示沿海城市的人口分布情况。 + +```json +{ + "type": "pin-map", + "data": [ + { + "longitude": 121.549792, + "latitude": 29.868388, + "label": "宁波人口:51 万" + }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海人口:151 万" }, + { + "longitude": 120.672111, + "latitude": 28.000575, + "label": "温州人口:67 万" + } + ] +} +``` + +3. 用点标注地图可视化我的数据 [{ "location": [116.3974, 39.9087], "label": "北京", "information": "中国的首都" },{ "location": [121.4737, 31.2304], "label": "上海", "information": "中国的经济中心" }] + +```json +{ + "type": "pin-map", + "data": [ + { "longitude": 120.153576, "latitude": 30.287459, "label": "杭州" }, + { "longitude": 121.4737, "latitude": 31.2304, "label": "上海" } + ] +} +``` + +4. 用点标注地图可视化我的数据 [{ title: '杨梅岭', longitude: 120.118362, latitude: 30.217175 },{ title: '理安寺', longitude: 120.112958, latitude: 30.207319 },{ title: '九溪烟树', longitude: 120.11335, latitude: 30.202395 }] + +```json +{ + "type": "pin-map", + "data": [ + { "label": "杨梅岭", "longitude": 120.118362, "latitude": 30.217175 }, + { "label": "理安寺", "longitude": 120.112958, "latitude": 30.207319 }, + { "label": "九溪烟树", "longitude": 120.11335, "latitude": 30.202395 } + ] +} +``` diff --git "a/knowledges/\347\203\255\345\212\233\345\234\260\345\233\276 - HeatMap.md" "b/knowledges/\347\203\255\345\212\233\345\234\260\345\233\276 - HeatMap.md" new file mode 100644 index 0000000..c17398a --- /dev/null +++ "b/knowledges/\347\203\255\345\212\233\345\234\260\345\233\276 - HeatMap.md" @@ -0,0 +1,83 @@ +## 图表属性 + +- 名称:热力地图 +- 别名:热力图,密度图,英文名:Heat Map、Density Map +- 图表类型:地图 +- 图表功能:空间、分布、趋势、密度 + +## 基础概念 + +热力地图是一种通过颜色渐变来展示地理位置数据强度或密度的可视化图表。它利用颜色的深浅变化,帮助用户识别数据在地理空间上的分布和集中趋势。热力地图适用于显示大量数据点的分布模式,可以清晰地识别出热点区域和趋势。 + +从数据上来说,热力地图需要地理位置的经度和纬度数据,还需要一个字段强度值来表示不同地点的权重。 + +## 适用场景 + +- 可视化商店、餐馆、景点、交通流量等热门地理位置。 +- 可视化人流、车流或其他移动对象的密集程度。 + +## 不适用场景 + +- 显示具体地点的位置信息时,点标注地图可能更适合。 +- 在处理非常稀疏的数据集时,热力地图可能无法有效传达信息,因为大部分区域将显示为最低级别的颜色。 +- 当需要查看行政区域热度,区域地图可能是更好的选择。 + +## 图表用法 + +### 地图属性 + +```typescript +type HeatMap = { + type: 'heat-map'; + data: { longitude: number; latitude: number; value: number }[]; +}; +``` + +### 数据要求 + +- type:地图的类型,必填,文本类型,值必须为 "heat-map" +- data:热力地图的数据,必填,数组对象类型; + - longitude:地点的经度数值,必填,数值类型; + - latitude:地点的纬度数值,必填,数值类型; + - value:数据的强度或密度,必填,数值类型; + +## 使用示例 + +1. 用热力图在地图上显示杭州市交通事故频发次数。 + +```json +{ + "type": "heat-map", + "data": [ + { "longitude": 116.3974, "latitude": 39.9087, "value": 5 }, + { "longitude": 121.4737, "latitude": 31.2304, "value": 3 } + ] +} +``` + +2. 用热力图在地图显示上海市游客量较大的景点。 + +```json +{ + "type": "heat-map", + "data": [ + { "longitude": 121.474856, "latitude": 31.249162, "value": 800 }, + { "longitude": 121.449895, "latitude": 31.228609, "value": 500 }, + { "longitude": 121.449486, "latitude": 31.222042, "value": 900 } + ] +} +``` + +3. 用热力地图显示我的数据 [{"longitude":121.449895,"latitude":31.228609,"intensity":500},{"longitude":121.449486,"latitude":31.222042,"intensity":900},{"longitude":121.431826,"latitude":31.204638,"intensity":400},{"longitude":121.448453,"latitude":31.222341,"intensity":300}] + +```json +{ + "type": "heat-map", + "data": [ + { "longitude": 121.449895, "latitude": 31.228609, "value": 500 }, + { "longitude": 121.449486, "latitude": 31.222042, "value": 900 }, + { "longitude": 121.431826, "latitude": 31.204638, "value": 400 }, + { "longitude": 121.448453, "latitude": 31.222341, "value": 300 } + ] +} +``` diff --git "a/knowledges/\350\257\215\344\272\221\345\233\276 - WordCloud Chart.md" "b/knowledges/\350\257\215\344\272\221\345\233\276 - WordCloud Chart.md" new file mode 100644 index 0000000..b68dfc5 --- /dev/null +++ "b/knowledges/\350\257\215\344\272\221\345\233\276 - WordCloud Chart.md" @@ -0,0 +1,98 @@ +## 图表属性 + +- 名称:词云图 +- 别名:词云,英文名:Word Cloud +- 图表类别:统计图表 +- 图表功能:排名、趋势 + +## 基础概念 + +词云图是一种用于展示文本数据中词语出现频率或权重的可视化方法,通过不同大小的文字来表示词频。词云图可以帮助快速识别文本数据中最常用或最重要的词语。 + +每个词的大小通常与其出现频率成正比,通常较大的字体代表更频繁出现或更重要的词,使用户可以直观地看到某个词在文本中出现的频繁程度。这种视觉化方式使得用户能够快速抓住文本的主要内容和核心主题。 + +## 适用场景 + +- 分析社交媒体、评论或反馈中常用的词语。 +- 文字分析中识别关键词或主题。 +- 在需要突出显示某些词汇的重要性时非常有用,比如新闻报道摘要、市场调研结果等场合。 + +## 不适用场景 + +- 数据主要为数值型,不涉及文本。 +- 需要精确数值对比的场合。 +- 文本数据量过小,无法形成有效对比。 + +## 图表用法 + +### 图表属性 + +```typescript +type WordCloud = { + type: 'word-cloud'; + data: { text: string; value: number }[]; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "word-cloud"。 +- data:图表的数据,必填,数组对象类型; + - text: 代表将要在词云中显示的具体词汇,必填,字符串类型; + - value:表示这个词汇的重要性分数(可以是频次、权重等),必填,数值类型; + +## 使用示例 + +1. 根据一篇关于环境保护的文章生成词云图,其中“环境”出现了 20 次,“保护”出现了 15 次,“可持续发展”出现了 10 次。 + +```json +{ + "type": "word-cloud", + "data": [ + { "text": "环境", "value": 20 }, + { "text": "保护", "value": 15 }, + { "text": "可持续发展", "value": 10 } + ] +} +``` + +2. 从一系列产品评价中提取关键字并创建词云图,“质量好”被提到 30 次,“价格合理”被提到了 20 次,“服务差”被提及了 5 次。 + +```json +{ + "type": "word-cloud", + "data": [ + { "text": "质量好", "value": 30 }, + { "text": "价格合理", "value": 20 }, + { "text": "服务差", "value": 5 } + ] +} +``` + +3. 分析一篇关于环保的文章,提取关键词及其频率,结果为:["环保": 10, "气候变化": 8, "可再生能源": 6, "碳排放": 5, "绿色生活": 4]。用词云图可视化。 + +```json +{ + "type": "word-cloud", + "data": [ + { "text": "环保", "value": 10 }, + { "text": "气候变化", "value": 8 }, + { "text": "可再生能源", "value": 6 }, + { "text": "碳排放", "value": 5 }, + { "text": "绿色生活", "value": 4 } + ] +} +``` + +4. 分析一篇文章的关键词,生成词云图。数据为 [{ "text": "数据", "value": 50 }, { "text": "分析", "value": 40 }, { "text": "结果", "value": 30 }]。 + +```json +{ + "type": "word-cloud", + "data": [ + { "text": "数据", "value": 50 }, + { "text": "分析", "value": 40 }, + { "text": "结果", "value": 30 } + ] +} +``` diff --git "a/knowledges/\351\235\242\347\247\257\345\233\276 - Area Chart.md" "b/knowledges/\351\235\242\347\247\257\345\233\276 - Area Chart.md" new file mode 100644 index 0000000..2a92d7b --- /dev/null +++ "b/knowledges/\351\235\242\347\247\257\345\233\276 - Area Chart.md" @@ -0,0 +1,131 @@ +## 图表属性 + +- 名称:面积图 +- 别名:区域图,英文名 Area Chart +- 形状:折线 +- 图表类别:统计图表 +- 图表功能:比较、趋势 + +## 基础概念 + +面积图,或称区域图,是一种随有序变量的变化,反映数值变化的统计图表,原理与折线图相似。而面积图的特点在于,折线与自变量坐标轴之间的区域,会由颜色填充。 + +## 适用场景 + +想要体现在连续自变量下,数据的趋势变化,同时也能够观察到数据总量的变化趋势。 + +例如,位移=速度(平均速度或微速度)x 时间:s=v\*t; 那么如果我们的 x 轴是时间 t,y 轴是每个时刻的速度 v,使用面积图,不仅可以观察速度随时间变化的趋势,还可以根据面积大小来感受位移距离的长度变化。 + +## 不适用场景 + +自变量不是顺序性的变量,这种情况下并不适合用面积图 + +## 图表用法 + +### 图表属性 + +```typescript +type Area = { + type: 'area'; + data: { time: string | number; value: number; group?: string }[]; + stack?: boolean; + title?: string; + axisXTitle?: string; + axisYTitle?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "area"。 +- data:图表的数据,必填,数组对象类型; + - time:数据的时序名称,必填,文本或数值类型; + - value:数据的值,必填,数值类型; + - group:数据分组名称,选填,文本类型; +- stack:是否开启堆叠,开启堆叠面积图需数据中含有 group 字段,选填,布尔类型。 +- title: 图表的标题,选填,文本类型。 +- axisXTitle:x 轴的标题,选填,文本类型。 +- axisYTitle:y 轴的标题,选填,文本类型。 + +## 使用示例 + +1. 每月的股票价格的变化,1 月份股票价格为 23.895,2 月份股票价格为 23.695,3 月份股票价格为 23.655。用面积图可视化。 + +```json +{ + "type": "area", + "data": [ + { "time": "1 月", "value": 23.895 }, + { "time": "2 月", "value": 23.695 }, + { "time": "3 月", "value": 23.655 } + ], + "title": "1月到3月股票价格的变化", + "axisXTitle": "月份", + "axisYTitle": "价格" +} +``` + +2. 在某项研究中,2019 年到 2023 年中三个城市的空气污染指数变化如下:北京分别为 150,160,145,155,165;广州分别为 100,110,105,115,120;上海分别为 90,85,80,75,70。堆叠面积图可视化。 + +```json +{ + "type": "area", + "data": [ + { "time": "2019年", "value": 150, "group": "北京" }, + { "time": "2020年", "value": 160, "group": "北京" }, + { "time": "2021年", "value": 145, "group": "北京" }, + { "time": "2022年", "value": 155, "group": "北京" }, + { "time": "2023年", "value": 165, "group": "北京" }, + { "time": "2019年", "value": 100, "group": "广州" }, + { "time": "2020年", "value": 110, "group": "广州" }, + { "time": "2021年", "value": 105, "group": "广州" }, + { "time": "2022年", "value": 115, "group": "广州" }, + { "time": "2023年", "value": 120, "group": "广州" }, + { "time": "2019年", "value": 90, "group": "上海" }, + { "time": "2020年", "value": 85, "group": "上海" }, + { "time": "2021年", "value": 80, "group": "上海" }, + { "time": "2022年", "value": 75, "group": "上海" }, + { "time": "2023年", "value": 70, "group": "上海" } + ], + "stack": true, + "title": "城市空气污染指数变化", + "axisXTitle": "年份", + "axisYTitle": "空气污染指数" +} +``` + +3. 用面积图可视化我的数据 [{ "year": 2015,"value": 7200.0 },{ "year": 2016, "value": 3660.0 },{ "year": 2017 ,"value": 4100.0 }]。 + +```json +{ + "type": "area", + "data": [ + { "time": 2015, "value": 7200.0 }, + { "time": 2016, "value": 3660.0 }, + { "time": 2017, "value": 4100.0 } + ], + "axisXTitle": "year", + "axisYTitle": "value" +} +``` + +4. 用堆叠面积图可视化我的数据 [{"year": "2018" , "value": 825.6, "country": "Asia" }, {"year": "2018" , "value": 60.2, "country": "Europe" }, {"year": "2019" , "value": 450, "country": "Asia" }, {"year": "2019" , "value": 95, "country": "Europe" }, {"year": "2020" , "value": 506, "country": "Asia" }, {"year": "2020" , "value": 76.7, "country": "Europe" }, {"year": "2021" , "value": 976.6, "country": "Asia" }, {"year": "2021" , "value": 97.2, "country": "Europe" }]。 + +```json +{ + "type": "area", + "data": [ + { "time": 2018, "value": 825.6, "group": "Asia" }, + { "time": 2018, "value": 60.2, "group": "Europe" }, + { "time": 2019, "value": 450, "group": "Asia" }, + { "time": 2019, "value": 95, "group": "Europe" }, + { "time": 2020, "value": 506, "group": "Asia" }, + { "time": 2020, "value": 76.7, "group": "Europe" }, + { "time": 2021, "value": 976.6, "group": "Asia" }, + { "time": 2021, "value": 97.2, "group": "Europe" } + ], + "stack": true, + "axisXTitle": "year", + "axisYTitle": "value" +} +``` diff --git "a/knowledges/\351\245\274\345\233\276 - Pie Chart.md" "b/knowledges/\351\245\274\345\233\276 - Pie Chart.md" new file mode 100644 index 0000000..3525d38 --- /dev/null +++ "b/knowledges/\351\245\274\345\233\276 - Pie Chart.md" @@ -0,0 +1,93 @@ +## 图表属性 + +- 名称:饼图 +- 别名:饼状图,英文名 Pie Chart +- 形状:圆形 +- 图表类别:统计图表 +- 图表功能:比较、占比、成分 + +## 基础概念 + +饼图,是一个划分为几个扇形的圆形统计图表。在饼图中,每个扇形的弧长(以及圆心角和面积)大小,表示该种类占总体的比例,且这些扇形合在一起刚好是一个完全的圆形。 + +饼图最显著的功能在于表现“占比”。习惯上,人们也用饼图来比较扇形的大小,从而获得对数据的认知。但是,由于人类对“角度”的感知力并不如“长度”,在需要准确的表达数值(尤其是当数值接近、或数值很多)时,饼图常常不能胜任,建议用柱状图代替。 + +从数据来看,饼图一般需要一个分类数据字段、一个连续数据字段。值得注意的是,分类字段的数据,在图表使用的语境下,应当构成一个整体(例如一班、二班、三班,构成了整个高一年级),而不能是独立、无关的。 + +## 适用场景 + +用于显示组成部分的比例,如市场份额、预算分配等。想要突出表示某个部分在整体中所占比例。 + +## 不适用场景 + +1. 如果变量之间相互独立,并不构成一个整体,那么不可以使用饼图。 +2. 饼图也不能用来表现趋势。 +3. 由于饼图用面积取代了长度,从而加大了对各个数据进行比较的难度,当各数据彼此之间十分接近,占比会不特别明显,如果用饼图表示,很难分辨大小。因此,当需要对数据进行比较,分清孰大孰小,尤其是当数据接近时,柱状图更加合适。 +4. 此外,当类别过多时,不建议使用饼图,否则阅读会将很差。可行的办法,一是将一些不重要的变量合并为“其他”,避免扇区超过 5 个;二是改用条形图。 + +## 图表用法 + +### 图表属性 + +```typescript +type Pie = { + type: 'pie'; + data: { category: string; value: number }[]; + innerRadius?: number; + title?: string; +}; +``` + +### 数据要求 + +- type:图表的类型,必填,文本类型,值必须为 "pie"。 +- data:图表的数据,必填,数组对象类型; + - category: 数据分类的名称,必填,文本类型; + - value:数据的值,必填,数值类型,不可以使用百分比数字; +- innerRadius:将饼图设置为环图,选填,数值类型,当需要开启为环图时,可设置值为 0.6。 +- title: 图表的标题,选填,文本类型。 + +## 使用示例 + +1. 我国的餐饮业营收额中,火锅占到 22%,其次是自助餐(12%)、川菜(8%)、小吃快餐(8%)、西餐(6%)、其它(44%)。用饼图可视化。 + +```json +{ + "type": "pie", + "data": [ + { "category": "火锅", "value": 22 }, + { "category": "自助餐", "value": 12 }, + { "category": "小吃快餐", "value": 8 }, + { "category": "西餐", "value": 6 }, + { "category": "其它", "value": 44 } + ], + "title": "餐饮业营收额占比" +} +``` + +2. 全国人口中居住在城镇的人口占比为 63.89%,居住在乡村的人口占比为 36.11%。用环图可视化。 + +```json +{ + "type": "pie", + "data": [ + { "category": "城镇人口", "value": 63.89 }, + { "category": "乡村人口", "value": 36.11 } + ], + "innerRadius": 0.6, + "title": "全国人口居住对比" +} +``` + +3. 用饼图可视化我的数据 [{ "name": "第一产业","industrial": 7200.0 },{ "name": "第二产业", "industrial": 36600.0 },{ "name": "第三产业" ,"industrial": 41000.0 }]。 + +```json +{ + "type": "pie", + "data": [ + { "category": "第一产业", "value": 7200.0 }, + { "category": "第二产业", "value": 36600.0 }, + { "category": "第三产业", "value": 41000.0 } + ] +} +``` diff --git a/prompts/chart-vis.md b/prompts/chart-vis.md index 8d3076d..8bfeadf 100644 --- a/prompts/chart-vis.md +++ b/prompts/chart-vis.md @@ -8,7 +8,7 @@ # 用户输入的问题: -请根据问题{{}},期望使用的图表{{}},生成精确的图表配置。 +请根据问题{{}},期望使用的图表{{}},生成精确的图表。 # 任务: @@ -24,7 +24,7 @@ 1. **理解用户问题**:仔细聆听用户需求,提取可视化意图信息。 2. **数据理解与提取**:分析用户提供的数据,提取关键的可视化数据。 -3. **图表配置生成**:根据图表类型和可视化数据,生成 JSON 格式的可视化图表配置。 +3. **图表生成**:根据图表类型和可视化数据,生成 JSON 格式的可视化图表。 4. **按需数据分析**:按需进行数据分析,根据用户的数据,生成客观解读,简洁且专业,不易过长。 # 限制: diff --git a/prompts/intent-recognition.md b/prompts/intent-recognition.md index f916c14..9678287 100644 --- a/prompts/intent-recognition.md +++ b/prompts/intent-recognition.md @@ -317,8 +317,8 @@ - 用户询问:海底捞外卖收入趋势。你的回答为:折线图 - 用户询问:看数据的占比 [{ \"title\": \"步行\",\"count\": 120.0 },{ \"title\": \"骑自行车\", \"count\": 80.0 },{ \"title\": \"开车\" ,\"count\": 200.0 },{ \"title\": \"公共交通\" ,\"count\": 150.0 }]。你的回答为:饼图 - 用户询问:做啤酒鸭需要哪些步骤。你的回答为:流程图 -- 用户询问:什么是折线图。你的回答为:consult -- 用户询问:折线图适用于哪些场景。你的回答为:consult +- 用户询问:什么是折线图。你的回答为:vis-consult +- 用户询问:折线图适用于哪些场景。你的回答为:vis-consult - 用户询问:你是谁。你的回答为:other # 用户的问题为: diff --git a/prompts/vis-consult.md b/prompts/vis-consult.md index 64eb0af..8d76816 100644 --- a/prompts/vis-consult.md +++ b/prompts/vis-consult.md @@ -1,4 +1,4 @@ -# 角色: 数据可视分析专家 +# 角色: 数据可视分析咨询师 # 角色描述: @@ -8,6 +8,11 @@ - 具备数据可视化知识咨询能力,能够解答用户关于图表类型、使用场景等问题。 - 用户咨询可视化相关问题,根据可视化知识库,具备查询总结能力,解答用户关于数据可视化的问题,提供专业建议和指导。 +- 你支持的可视化图表类型有:折线图、柱形图、饼图、面积图、条形图、散点图、双轴图、流程图、思维导图、网络图、标注地图、热力地图。 + +# 限制: + +- 用户咨询不支持的图表的类型时,回答现在还不支持,并列出支持的图表。 # 用户的问题: