Versions Compared

Key

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

...

getHistoricalData (resolution: "hourly",
aggregateType: "count",
attributes: {val: ["currentState"]},
comparison: "true",
filterAttributes: {val:["team", "skillGroup"]},
filterValues: {val: [[1, 2, 3], [4, 5, 6]],chartType:"Line Chart"})
{
   name
   series
}

Result:

...

      {
        "value": 5,
        "name": "2016-09-17T12:47:17.425Z"
      },
      {
        "value": 10,
        "name": "2016-09-19T17:07:51.824Z"
      },
      {
        "value": 15,
        "name": "2016-09-20T10:30:15.408Z"
      },
      {
        "value": 10,
        "name": "2016-09-13T10:41:32.861Z"
      },
      {
        "value": 8,
        "name": "2016-09-21T18:23:16.441Z"
      }]
}
]


Bar Chart

...

Query (Historical)

Bar Chart also support the same input arguments as of line chart, only its output response is different. The expected result of bar chart query is as follow:

Sample Query:

Sample Query:

getHistoricalData (resolution: "hourly",
aggregateType: "count",
attributes: {val: ["currentState"]},
comparison: "true",
filterAttributes: {val:["team", "skillGroup"]},
filterValues: {val: [[1, 2, 3], [4, 5, 6]],chartType:"Bar Chart"})
{
   name
   series
}