light
and dark
modes.https://api.apyhub.com/generate/charts/pie/file
POST
application/json
Attribute | Type | Mandatory | Description |
---|---|---|---|
output | String | No | The name for the generated pie chart. If no output attribute is provided, the default file name will be output.png . |
Attribute | Type | Mandatory | Description |
---|---|---|---|
title | String | No | Provide title for the chart. |
theme | String | No | Provide theme for the chart - accepted values are Dark or Light , defaults to Light theme. |
data | Array of Objects | Yes | Provide the data for the pie chart. |
data[a].label | String | Yes | Provide the label for the pie chart item. |
data[a].value | Number | Yes | Provide the value for the pie chart item. |
Status Code | Description |
---|---|
200 | The request was successful. |
401 | Required authentication information is either missing or not valid for the resource. |
400 | Invalid input - the content is empty. |
500 | If any unexpected error occurs while processing the request. |
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".apy-token
as the header parameter to pass the token.Authorization
header to send the basic authentication credentials.