ver Feb19thv3

converted examples from sheetcopilot
This commit is contained in:
David Chang
2024-02-19 19:43:55 +08:00
parent 98e155a4c0
commit c6bd5c9d92
52 changed files with 5178 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
{
"id": "8fa9072b-ea9b-4679-84c6-420f3fe4c697",
"snapshot": "libreoffice_calc",
"instruction": "In a new sheet, merge cells A1:B1 and write bold text \"Summer sales ($)\" with yellow fill color and white text color. Then create a pivot table starting in this new sheet for my data in Sheet 1 to calculate the sum of revenue for each week. Plot a line chart illustrating the trend of the results with chart title \"Revenue of Each Week\". Set the horizontal axis title as \"Week\" and remove the vertical axis title as well as legend.",
"source": "SheetCopilot@51",
"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/8fa9072b-ea9b-4679-84c6-420f3fe4c697",
"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=1VZP8zkroAoDZC4fxDfLR5HcnuOUChuh1&export=download",
"dest": "2_EntireSummerSales_gt1.xlsx"
},
"result": {
"type": "vm_file",
"path": "/home/user/EntireSummerSales.xlsx",
"dest": "EntireSummerSales.xlsx"
},
"options": {
"rules": [
{
"type": "style",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"props": [
"font_name",
"font_color",
"font_bold",
"font_italic",
"font_underline",
"bgcolor"
]
},
{
"type": "sheet_data",
"sheet_idx0": 0,
"sheet_idx1": "EI0"
},
{
"type": "chart",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"chart_props": [
"xtitle",
"ytitle",
"type",
"legend",
"title"
]
},
{
"type": "pivot_table",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"pivot_props": [
"col_fields",
"filter",
"row_fields",
"data_fields"
]
}
]
}
}
}