Added option to perform single query for historgram

- The histogram renders much faster when querying multiple indices at
  once, rather than one at a time sequentially.