Overview
Generate charts and graphs in Excel spreadsheets from data tables. Add professional visualizations to your dynamically generated reports without manual chart creation.Charts are created as part of the
create_spreadsheet operation using chart blocks. This endpoint reference shows how to use chart blocks effectively.Chart Block Structure
Include chart blocks in your spreadsheet creation request:Chart Types
Type of chart to generateOptions:
"bar"- Vertical bar chart"column"- Horizontal bar chart"line"- Line chart"pie"- Pie chart"scatter"- Scatter plot"area"- Area chart
Chart Options
Chart title
Name of the data table to visualize (must be defined earlier in the sheet)
Column name for X-axis
Column name for Y-axis
Additional chart configuration
Example Request
Chart Examples by Type
Bar Chart
Line Chart
Pie Chart
Scatter Plot
Use Cases
Project Dashboards
Project Dashboards
Create visual dashboards with multiple charts showing project metrics.
Progress Reports
Progress Reports
Visualize project progress with timeline charts and completion percentages.
Engineering Analysis Plots
Engineering Analysis Plots
Create technical charts for load-deflection curves, moment diagrams, etc.
Best Practices
Define data first - Always create the data table block before the chart block
Use named tables - Reference tables by name for clarity and maintainability
Choose appropriate chart type - Match chart type to data (bar for categories, line for trends, pie for proportions)
Add titles - Always include descriptive chart titles
For multi-series charts (comparing Budget vs Actual), pass an array for
y_axis: "y_axis": ["Budget", "Actual"]Chart Customization Options
| Option | Type | Description | Default |
|---|---|---|---|
legend_position | string | Position of legend: "top", "bottom", "left", "right" | "right" |
show_data_labels | boolean | Show values on data points | false |
colors | array | Custom color palette (hex codes) | Default Excel colors |
smooth_lines | boolean | Smooth line charts | false |
show_trendline | boolean | Add trendline (scatter/line charts) | false |
show_percentages | boolean | Show percentages (pie charts) | false |
Next Steps
After generating a spreadsheet with charts:- Download the .xlsx file
- Open in Excel to view the visualizations
- Charts are fully editable in Excel if adjustments are needed