Air Days

Within the Air Factor section of Risk Factor, we provide a graph similar to the image below showing the expected change in poor air quality days.

This graph can be generated using the following query

{
  property(fsid: $fsid) {
    air {
      days {
        outdoorDays {
          year
          relativeYear
          color {
            color
          }
          totalDays
          totalDaysYAxisHeight
        }
      }
    }
  }
}

When displaying the data on a bar graph, similar to above, utilize the following rules based on the field names above.

FieldDescription

totalDays

Total number of days from all pollutants.

totalDaysYAxisHeight

The max height of the y axis when the data point is being represented on a graph (from 0-100, where 100 is the max value) based on totalDays.

relativeYear

The x-axis representation of year. Using relative year will allow for future-proofing later updates.

Last updated