Beginner question how to group data by data for graph

Hello, im getting started with influxdb and chronongraph, and i have been struggling for weeks to try and group data by a field within my table.

I’ve never used time series databases before but I’ve used many databases in the past like SQL, or Salesforce.

Basically my data is as follows its temp values with a location:

Value Location
68 Office
67 Bedroom
66 Kitchen

and what i am trying to make a chronograph chart to graph my room temps over a given time period with a different line per Location.

I can do this with separate queries but that seems inefficient.

what am i missing here? ive been searching for weeks and don’t seem to be able to find the answer.