The PurpleAir Map supports a graph feature that can be used to easily view data from sensors. This is useful when looking to understand the recent history of a device and its air quality readings.
Opening The Graph
The PurpleAir map can be used to see recent historical data displayed in a line graph. When on the map, clicking or tapping on a sensor’s map marker will cause the graph to open. The graph will show data for the currently selected data layer. The length of time displayed on the graph will change depending on the selected averaging period. To close the graph, click or tap on the “x” in the top-right corner of the configuration menu window.
Hovering the mouse over or tapping on a point on the graph will display its value as well as the date and time the entry was collected.
Zooming in on The Graph
Zooming in on a Computer
Zooming in on the graph allows you to see data for a specific time range and restrict the y-axis to new maximum and minimum values. To zoom in, click and drag your mouse on a section of the graph. A colored box will show the area you’ve selected, and releasing your mouse click will zoom in on that area.
When zoomed in, you can pan left or right by clicking and dragging the graph while holding down “shift”.
Zooming in on a Mobile Device
If using a mobile device, you can zoom in by pinching with two fingers on the graph. This is the same way you typically zoom in on any other website.
Undoing Zooming
To undo any zooming you have done, click the “Reset zoom” button beneath the graph. This button only appears after you have zoomed in.
Viewing Multiple Sensors
The graph is capable of comparing data from multiple sources. With the graph open, you can click on a second sensor to add its readings to the graph view. Any number of sensors can be clicked or tapped to overlap their graphs. To highlight the data of a specific channel, hover the mouse cursor over the channel’s name at the bottom of the graph window. Clicking or tapping on the channel name will toggle its visibility. The dashed gray line viewable on the graph displays the average of the graph data. Below is an example of where to click to toggle this option.
By clicking on channel A underlined in the image above, only channel B will display data. This is helpful when viewing sensors with one channel reporting erroneously high, for example, as then the erroneous data won’t appear on the map.
Viewing Older Data on The Graph
The amount of data visible on the graph is determined by the selected averaging period. Using a larger averaging period will allow you to see data from a longer timespan.
Selected Average | Visible Data |
---|---|
Real-time | 2 days |
10-minute | 3 days |
30-minute | 7 days |
1-hour | 14 days |
6-hour | 90 year |
1-day | 1 year |
1-week | 5 years |
1-month | 20 years |
1-year | 100 years |
If you want to use a lower average but retrieve older data, you will need to go through our API.
Fullscreen and Downloading Data
Clicking or tapping on the hamburger menu on the graph window provides download options. Selecting “View in full screen” will cause the graph to fill the space of your screen.
While in full screen, the menu option will switch to “Exit from full screen.” Additionally, you can download an image of the graph as a PNG, JPG, PDF, or SVG. The data that appears in the graph can be downloaded by selecting “Download CSV” or “Download XLS.” More information on downloading is available here: Q: How Do I Download Map Graph Data.
The PurpleAir API can be used to download data as well. Using the API you can obtain data from any number of sensors, download multiple types of data simultaneously, and download data regardless of the reported time or averaging period.
Learn More
PurpleAir Map Guide
Map Troubleshooting Guide
Which AQI Data Layer to Choose