-
Notifications
You must be signed in to change notification settings - Fork 0
Pie Chart
Ksenyia edited this page Feb 1, 2017
·
2 revisions
Getting pie chart limited by 2 filter parameters "transfer_unit" and "transfer_year".
Resource URI
pie_chart?{transfer_unit}&{transfer_year}
Response Attribute
{
errorList: Array,
transfers: [
{
children: [
{
key: String,
value: Float,
y: Float
}
],
name: String,
total_value: String
}
],
filters: [
{
currency_selector: Object,
year_selector: Object
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/pie_chart?transfer_unit=USD&transfer_year=2015
Response
HTTP Status Code 200
{
errorList: [],
transfers: [
{
children: [
{
key: "United States of America",
value: 394.346695,
y: 5.588235294117647
},
...
],
name: "payments",
total_value: "60359.858"
}
],
filters: [
{
currency_selector: {
NOK: 190,
USD: 549,
xBBL: 34,
xBOE: 1,
xGJNG: 2
},
year_selector: {
2009: 57,
2010: 260,
2011: 38,
2014: 232,
2015: 186
}
}
]
}