plot_pie_chart
Create a pie chart directly from a Teradata table to visualize proportions. Specify the table, category column for labels, and numeric value column.
Instructions
Generate a pie chart that reads directly from a Teradata table — do NOT use base_readQuery to pre-fetch or aggregate data first. Specify the table in table_name, the category column in labels, and the numeric value column in column. Use when the user asks for proportions, shares, or how a total breaks down by category. For polar area charts, use plot_polar_chart. For time-series trends, use plot_line_chart.
PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the pie chart. Types: str
labels:
Required Argument.
Specifies the category column for labels.
Types: str
column:
Required Argument.
Specifies the numeric value column for the pie chart.
Types: strRETURNS: dict
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | Required Argument. Specifies the numeric value column for the pie chart. Types: str | |
| labels | Yes | Required Argument. Specifies the category column for labels. Types: str | |
| table_name | Yes | Required Argument. Specifies the name of the table to generate the pie chart. Types: str |