/api/reports/views/:id/chart
Returns chart metadata for rendering.
Resource Information
Resource URL | |
HTTP Method |
|
Parameters
Parameters | Detail |
---|---|
| ID of the view. You can find the ID in the response to |
| Filter used in the chart. { "drilldown": { "L_COUNTRY_OR_AREA": { "op": "EQ", "value": "Slovakia"}, "L_TYPE": { "op": "IN", "values": [ "Type 1", "Type 2", "Type 3" ]}, "L_DATE":{"op":"NOT_NULL"} } } |
| Date time definition used in the chart. { "dateInterval": { "interval": { "from":{"year":"2014","month":"1","day":"22"}, "to":{"year":"2014","month":"1","day":"25"}, "type": "absolute" }, "aggregationType": "DAY" } } |
Sample Request / Response
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>" }