How to Use the Map Graph

The PurpleAir Map supports a powerful graph feature that allows you to easily view data from sensors. This is useful when looking to understand the recent history of a device and its air quality readings. This article outlines what you’re able to do with the graph.

This article will use terms and concepts specific to the PurpleAir map. If you haven’t already, we recommend reading our PurpleAir Map Guide to familiarize yourself.


Opening the Map Graph

The PurpleAir Map displays recent historical data in an interactive line graph. To open the graph, follow the steps below.

  1. Open the PurpleAir map.
  2. Click on a sensor’s map marker, this will open the graph.
  3. What is shown on the graph reflects your current map settings, including your selected data layer, conversion, and averaging period.

Map Setting Purpose
Data Layer This is the type of data you’re looking at. If you have the US EPA AQI selected, the graph will show AQI values. But if you have temperature selected, it will show temperature data. These are only two examples; many other data layers exist.
Apply Conversion If you have any conversion applied, the graph data will reflect that conversion. Conversions help accommodate different types of pollution in different areas and situations.
Averaging Period The averaging period determines what average of data you’re looking at. If you have real-time selected, you’re looking at a two-minute average, which is a single value that represent the past two minutes of data. If you have 10-minute selected, you’re looking at 10 minute averages. Each point on the graph is one of these averages.

To close the graph, click or tap the “x” in the top-right corner of the configuration menu.

Hovering over or tapping a point on the graph will display its value along with the exact date and time of the reading.

You’ll also notice that when you click on an outdoor sensor, two lines appear in the graph. These are the two channels in your device.


Zooming in on the Graph

Zooming in allows you to focus on a specific time range and adjust the y-axis to new minimum and maximum values.

Zooming in on a Computer

To zoom in on a computer, click and drag your mouse over a section of the graph. A colored box will appear to indicate the section you’re zooming in to. Release the mouse to zoom in.

While zoomed in, you can pan left or right by clicking and dragging the graph while holding down the Shift key.

Zooming in on a Mobile Device

When using a mobile device, spread with two fingers on the graph to zoom in, just as you would on most websites.

Resetting the Zoom

To return to the default view, click the “Reset zoom” button below the graph. This button only appears after zooming in. On a mobile device, you can also pinch with two fingers to zoom out.


Additional Information

Viewing Multiple Sensors

The graph can display and compare data from multiple sensors simultaneously. With the graph open, click on another sensor to add its readings to the same view. You can add as many sensors as you like for side-by-side comparison.

To highlight or isolate a specific channel of data, hover your mouse over its name at the bottom of the graph.

  • Clicking or tapping the channel name toggles its visibility in the graph. This is especially helpful when one sensor channel is experiencing an issue and reporting erroneous values. You can simply click on its name at the bottom to hide it from view.

  • The dashed gray line represents the average of all displayed data.

Viewing Older Data

The amount of data shown in the graph depends on the selected averaging period. Larger averages allow you to view longer periods of historical data.

Selected Average Visible Data
Real-time 2 days
10-minute 3 days
30-minute 7 days
1-hour 14 days
6-hour 90 days
1-day 1 year
1-week 5 years
1-month 20 years
1-year 100 years

To access older data with a smaller averaging period, you can query it from the PurpleAir API.

Fullscreen Mode and Download Options

Hamburger Menu Dropdown

Click or tap the hamburger menu ☰ on the graph window for additional options.

  • Select “View in full screen” to expand the graph to fill your screen.
  • When in full screen, the option changes to “Exit full screen.”

You can also download the graph as an image (PNG, JPG, PDF, or SVG) or export the underlying data as a CSV or XLS file.

For more details, see How to Download Map Graph Data.

You can also use the PurpleAir API to download and analyze data from multiple sensors, across any averaging period, and for any time range.


Learn More

4 Likes

Thanks for posting this description. Would be great to see a link to this from the map page graph section itself, I don’t think most initial or casual users are going to know to look in the forums for this info. Maybe also a note about the download icon hidden in the bottom left corner of the map.

1 Like

Hi @jcothran, this is a great idea. I will input it as a feature request to be looked into.

can you tell me what A & B is ? What is the meaning of those two ?

1 Like

Hi @CDVTA, PA-II edition sensors contain two laser counters that read the air quality independently. If you select a sensor on the PurpleAir map, you will likely see two lines that appear on the graph. Each of these lines represents a single channel in that sensor. They are named channel A and channel B.

2 Likes

Thanks for the details

Thanks, this is useful! I have some suggestions for the UI, and a question.

Suggestion 1:
It is very non-intuitive that the way to get the drop down menus to show up is to click in the tiny grey space above the plot. Maybe you could have words to click to get it to show up. Also, it would be nice to have words to click to hide it. The intuitive way to hide it would be to click on the ‘x’, but that makes the entire plot go away (but oddly not the drop down menus).

Suggestion 2:
There should be simple instructions somewhere on the page that tells the user: “Click on a sensor to add its data to your plot”. I’ve used this map a dozen times now and have only now figured that out, and not until I read this page did I realize that this is how to have data from multiple sensors.

Suggestion 3:
I’d like a button that would change the horizontal (time) axis on the plot to show the last week, and one for the last month. Currently the only way to change the amount of time displayed (I think) is to change the averaging time. I’d rather just compress the data. And I don’t know offhand how much to change the averaging time to see the last week.

Suggestion 4: the legend for the names of the sensors is in a very very small font. Could there be a way to make them larger?

Question: I thought that before I had found a way to see the average of all the sensors in my neighborhood, but I can’t find that now. Is that possible?

Thanks for all your efforts!
Emily

2 Likes

Oh, it would also be nice to have a single button to click to add the data from all the sensors within the current map zoom to my plot. Because somehow they sometimes get unselected on their own and it is tedious to add one by one.

1 Like

what is the value listed underA and B mean

1 Like

how the average of the following data is 30

Average AQN1 A AQN1 B
30.8 64.6335338 62.0530958

what about data for 2021, when downloading

1 Like

Many PurpleAir sensors use two laser counters to conduct independent measurements. These are referred to as “Channel A” and “Channel B.” Data can be labeled to indicate which channel it’s from.

Could you provide the sensor index, averaging period, data layer, and time that you obtained the provided data? Did you also obtain this from the map or the API?

1 Like

Thank You for your swift response. example

AQN2_V2

(Attachment raw-pm25-us-epa-gm.xls is missing)

2 Likes

I want data from all stations in addis from 2016 or the date of establishment to the end of Dec 30/2023( for the time being from establishment to today) , the humidity, temperature, wind speed and monthly and yearly PM2.5 data.

1 Like

The dotted average line is an average of all data viewable on the graph. In this case, the average is being affected by the higher readings from 2020.

If you would like to download data for all sensors in Addis, you may want to use our API. To do this, you can follow these steps:

  1. You’ll first need to create API keys
  2. Then you’ll want to obtain sensor indexes for all the sensors you want data from
  3. Finally, you can use the Data Download Tool to download historical data from the API.

Please follow our API Use Guidelines. Additionally, the API is a paid service. However, every user gets some usage for free, and sensor owners can contact us for assistance on obtaining data from their devices.

2 Likes

@listemily These are some fantastic suggestions, and we appreciate the feedback! I’ll pass these along to the map development team.

As for your question about showing averages for all sensors in your neighborhood, if you change the Averaging period, this will change all sensor markers on the map to match the average you’ve chosen.

2 Likes

Hi there. I dont know what happened but the Y line on the graph now extends to 3k. How do I get it back to a more readable level. Perhaps 500? Thanks

2 Likes

Hello,

We have sent you an email to begin troubleshooting this issue.

1 Like

A post was merged into an existing topic: PurpleAir Data Validation