Returns chart metadata for rendering.
Charts can be rendered using BellaDati Charts SDK. |
Resource URL | |
HTTP Method |
|
Parameters | Detail | Example | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of the view. You can find the ID in the response to | 123 | |||||||||||||||||||||||||||||||||||
| (Optional) Filter used in the chart with following structure:
|
| |||||||||||||||||||||||||||||||||||
| (Optional) Date and time definition used in the chart with following structure:
|
|
JSON response has following definition:
Name | Description |
---|---|
content | JSON charts data - please see Charts SDK for more details. |
cleverTitle | View title with description of applied filter and datetime definition. |
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/88738/chart |
The JSON format response:
{ "content": { "chartId": "chart_88738", "bg_colour": "#e5e5e5", "is_decimal_separator_comma": 1, "elements": [ ], "is_thousand_separator_disabled": 1, "options": { }, "tooltip": { "colour": "#202020", "stroke": 1, "mouse": "2", "shadow": true, "background": "#ffffff" } }, "cleverTitle": "<div class=\"cleverTitle\"><\/div>" } |
Sample request with filter, using curl:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/88738/chart?filter={"drilldown":{"L_STATE":{"op": "IN","values":["Arizona"]}}} |