Brief hướng dẫn dùng Gemini Vẽ Chart
https://docs.google.com/document/d/1PXPbM0FfNmuSoa4cHXbJktwL8AXFmo1PVfvlc8sUxW8/edit?tab=t.0
https://www.youtube.com/watch?v=0gD5tHXwxIg&ab_channel=QIHọcAI%26Automation
Hướng dẫn tạo chart tự động trên google sheet
Sử dụng model: Gemini - Pro - 2.5
Truy cập tại: https://aistudio.google.com/prompts/new_chat
QI Học AI & Automation
(Credit dành cho:AIC Certified Accountants)
Prompt 1:
- Tôi muốn xây dựng một bảng dashboard bằng cách sử dụng tập lệnh ứng dụng của Google Sheets.
- Tôi đã tạo một bảng tính Google và tập lệnh ứng dụng của tôi được liên kết với bảng tính này.
- Bên trong bảng tính, tôi có một bảng tính Google có tên là "filter" với tên và vị trí các cột như sau:
- order_date (“column A”): Date format is YYYY/MM/DD. This column represents the date when the order was placed.
- ship_mode (“column B”): This column indicates the shipping method used for the order, such as Standard Class.
- id_customer (“column C”): This column identifies the customer who placed the order, using a unique customer ID.
- segment (“column D”): This column categorizes the customer type, such as Consumer or Home Office.
- city (“column E”): This column specifies the city where the order was shipped to.
- state (“column F”): This column indicates the state where the order was shipped to.
- region (“column G”): This column denotes the geographic region of the order, such as Central.
- id_product (“column H”): This column provides the unique identifier for the product ordered.
- category (“column I”): This column describes the broad category of the product, such as Office Supplies.
- sub_category (“column J”): This column specifies the subcategory of the product, such as Paper or Labels.
- product_name (“column K”): This column describes the specific product purchased, including brand and specifications.
- sales (“column L”): This column represents the total sales amount for the order in monetary units.
- quantity (“column M”): This column indicates the number of units of the product ordered.
- profit (“column N”): This column shows the profit generated from the order in monetary units.
- order_id (“column O”): This column provides the unique identifier for the order.
- Tôi đang cung cấp một mẫu dữ liệu từ bảng "bộ lọc" của tôi.
- Vui lòng phân tích và gợi ý cho tôi thiết kế bảng điều khiển bao gồm các số chính nào để hiển thị và các biểu đồ nào để tạo.
- Tôi muốn hiển thị;
- Một số số chính ở trên cùng của bảng điều khiển trong các thẻ.
- Các thẻ khác nhau để tạo biểu đồ.
Prompt 2:
Với các metrics, chart và layout mà bạn đã đề xuất ở trên. Hãy đóng vai trò hoạt động như một nhà phát triển full stack chuyên nghiệp. Phân tích cẩn thận các chi tiết và cung cấp mã Google Apps Script hoàn chỉnh và hoạt động đầy đủ để tạo ra bảng dashboard.
· Viết HTML, CSS và JAVASCRIPT trong một tệp index.html duy nhất.