Googlesheets charts graphs

From theexperiencecompany/gaia · View interactive version

Googlesheets charts graphs is an AI agent skill from the GitHub repository theexperiencecompany/gaia. Create charts and visualizations in Google Sheets: detect data structure, select chart type, format for clarity, present insights

How to use this skill

Skill file

Google Sheets: Charts & Graphs

When to Activate

User wants to visualize data, create charts, build dashboards, or add graphs to a spreadsheet.

Step 1: Understand the Data

Before creating any chart, read the data:

GOOGLESHEETS_SEARCH_SPREADSHEETS(query="<name>") → spreadsheet_id
GOOGLESHEETS_GET_SHEET_NAMES(spreadsheetId=spreadsheet_id) → sheets list
GOOGLESHEETS_VALUES_GET(spreadsheetId, range="Sheet1!A1:Z5") → peek at structure

Identify:

Step 2: Select Chart Type

| Data Pattern | Best Chart | Why |

|-------------|-----------|-----|

| Categories + values | BAR or COLUMN | Compare quantities across categories |

| Time series | LINE or AREA | Show trends over time |

| Parts of whole | PIE | Show proportions (≤7 categories) |

| Two numeric variables | SCATTER | Show correlation/distribution |

| Multiple metrics over time | COMBO | Lines + bars together |

| Distribution | HISTOGRAM | Show frequency distribution |

| Hierarchical | TREEMAP | Show nested proportions |

Rules:

Step 3: Determine Data Range

GOOGLESHEETS_GET_SPREADSHEET_INFO(spreadsheetId) → get sheet_id (numeric, NOT sheet name)

Range rules:

Step 4: Create the Chart

GOOGLESHEETS_CREATE_CHART(
  spreadsheet_id="...",
  sheet_id=0,                    # Numeric sheet ID, NOT name
  chart_type="BAR",
  data_range="Sheet1!A1:C10",
  title="Sales by Region",
  x_axis_title="Region",
  y_axis_title="Revenue ($)",
  legend_position="BOTTOM_LEGEND"
)

Chart type options: BAR, LINE, PIE, COLUMN, AREA, SCATTER, COMBO, STEPPED_AREA, HISTOGRAM, BUBBLE, CANDLESTICK, TREEMAP, WATERFALL, ORG, SCORECARD

Step 5: Present Insights

Don't just create the chart, tell the user what it shows:

Created: "Sales by Region" (Bar Chart)
  Key insights:
  - West region leads with $450K (38% of total)
  - East region grew 22% vs last quarter
  - South region underperforming at $120K

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.