light
and dark
modes.https://api.apyhub.com/generate/charts/bar/file
POST
application/json
Attribute | Type | Mandatory | Description |
---|---|---|---|
output | String | No | The name for the generated bar graph. 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 graph. |
theme | String | No | Provide theme for the graph - accepted values are Dark or Light , defaults to Light theme. |
data | Array of Objects | Yes | Provide the data for the bar graph. |
data[a].label | String | Yes | Provide the label for the bar. |
data[a].value | Number | Yes | Provide the value for the bar. |
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.