Move sheetcopilot examples into libreoffice calc folder

This commit is contained in:
Timothyxxx
2024-03-14 12:57:15 +08:00
parent 0aae756538
commit f9ccaa5773
50 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
{
"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": "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"
]
}
]
}
}
}