| 67 | }; |
| 68 | |
| 69 | function getAqiLabel(aqi: number): { label: string; color: string } { |
| 70 | if (aqi <= 20) return { label: "Good", color: CHART_GREEN }; |
| 71 | if (aqi <= 40) return { label: "Fair", color: "#CDDC39" }; |
| 72 | if (aqi <= 60) return { label: "Moderate", color: CHART_GOLD }; |
| 73 | if (aqi <= 80) return { label: "Poor", color: "#FF9800" }; |
| 74 | if (aqi <= 100) return { label: "Very Poor", color: "#d73027" }; |
| 75 | return { label: "Hazardous", color: "#7B1FA2" }; |
| 76 | } |
| 77 | |
| 78 | function isUrbanRegion(landUseData: any): boolean { |
| 79 | if (!landUseData) return false; |