Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 when comparison is false (i.e comparison of multiple attributes in single week)
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
      }
]
}

...


...

 ]

Result when comparison is true (i.e comparison of same attribute for this and previous week)
Result:

[
{
name: "Mon"
series: [
      {
        "name": "This week",
"value": 490 }, { "name": "Previous Week",
"value": 490 }
]
},
{
    name: "Tue"
series: [
      {
        "name": "This Week",
"value": 490 }, { "name": "Previous Week",
"value": 321 }
]
 }
]