plot_pie_chart
Generate pie charts from Teradata database tables to visualize data distribution across categories using specified labels and values.
Instructions
Function to generate a pie chart plot for labels and columns. Columns mentioned in labels are used as labels and column is used to plot.
PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the donut plot. Types: str
labels:
Required Argument.
Specifies the labels to be used for the line plot.
Types: str
column:
Required Argument.
Specifies the column to be used for generating the line plot.
Types: str
RETURNS: dict
Input Schema
Name | Required | Description | Default |
---|---|---|---|
column | Yes | ||
labels | Yes | ||
table_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"column": {
"title": "Column",
"type": "string"
},
"labels": {
"title": "Labels",
"type": "string"
},
"table_name": {
"title": "Table Name",
"type": "string"
}
},
"required": [
"table_name",
"labels",
"column"
],
"type": "object"
}