light and dark modes.https://api.apyhub.com/generate/charts/stacked/filePOSTapplication/json| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| output | String | No | The name for the generated stacked 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 Stack Objects | Yes | Provide the data for the stacked graph. |
| data[a].name | String | Yes | Provide the name for the stack. |
| data[a].values | Array of Bar objects | Yes | Provide the values for the bars within the stacked graph. |
| data[a].values[b].label | String | Yes | Provide the label for the bar. |
| data[a].values[b].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.