...
Bar Chart also support the same input arguments as of line chart, only its output response is different. The sample query and expected result of bar chart query is as follow:
...
getHistoricalData (resolution: "hourly",
aggregateType: "count",
attributes: {val: ["callsAbandoned","callsReceived","callsAnswered"]},
comparison: "true",
filterAttributes: {val:["queue","skillGroup"]},
filterValues: {val: [[1, 2, 3], [4, 5, 6]],chartType:"Bar Chart"})
{
name
series
}
Result:
[
{
"name": "Mon",
" series": [{
{ "name": "
...
Received",
"value": 490
...
},
...
{ "name": "Answered",
"value":
...
490 }, { "name": "Abandoned",
"value":
...
490 }
]
},
{
" name": "Tue",
" series": [{
{ "name": "
...
Received",
"value":
...
490 }, { "name": "Answered",
"value":
...
321 }, { "name": "Abandoned",
"value":
...
700 }
]
},
{
name: "Wed"
series: [
{ "name": "
...
Received",
"value":
...
490 }, { "name": "Answered",
"value":
...
570 }, { "name": "Abandoned",
"value":
...
220 }
]
}
]