103 lines
2.3 KiB
JSON
103 lines
2.3 KiB
JSON
{
|
|
"id": "cd3c4994-b9e2-426b-8157-f7978ff55501",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "In a new sheet, merge cells A1:B1 and write bold text \"Summer sales ($)\" with blue fill color and white text color. Then create a pivot table in this new sheet for my data in Sheet 1 and summarize the monthly revenue for each sales channel. Plot a stacked column chart illustrating the results. Set the chart titles as \"Revenue of Each Channel ($)\" and move the legends to the bottom.",
|
|
"source": "SheetCopilot@52",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1I29YyV7zFdNqbsQw0SWD9pDuLz3oHlge&export=download",
|
|
"path": "/home/user/EntireSummerSales.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/EntireSummerSales.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/cd3c4994-b9e2-426b-8157-f7978ff55501",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "EntireSummerSales.xlsx - LibreOffice Calc",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_table",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.google.com/uc?id=1MDqRVCrhUq_FKI0ZspIxcEyww_BZ-4Lb&export=download",
|
|
"dest": "3_EntireSummerSales_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/EntireSummerSales.xlsx",
|
|
"dest": "EntireSummerSales.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "sheet_data",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0"
|
|
},
|
|
{
|
|
"type": "chart",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0",
|
|
"chart_props": [
|
|
"type",
|
|
"legend",
|
|
"title"
|
|
]
|
|
},
|
|
{
|
|
"type": "pivot_table",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0",
|
|
"pivot_props": [
|
|
"col_fields",
|
|
"filter",
|
|
"row_fields",
|
|
"data_fields"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |