about summary refs log tree commit diff stats
path: root/py/air-quality/analyze_air_quality.mjs
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2025-01-19 17:14:32 -0500
committerelioat <elioat@tilde.institute>2025-01-19 17:14:32 -0500
commit290ae08f519b89a063e040b8bef2318b1934d668 (patch)
tree267ee8926dd48b9b05fb48cd226f1cb3e8c88850 /py/air-quality/analyze_air_quality.mjs
parenta3c8f211e7a068942972361b337ff805b63444c9 (diff)
downloadtour-290ae08f519b89a063e040b8bef2318b1934d668.tar.gz
*
Diffstat (limited to 'py/air-quality/analyze_air_quality.mjs')
-rw-r--r--py/air-quality/analyze_air_quality.mjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/py/air-quality/analyze_air_quality.mjs b/py/air-quality/analyze_air_quality.mjs
new file mode 100644
index 0000000..187949f
--- /dev/null
+++ b/py/air-quality/analyze_air_quality.mjs
@@ -0,0 +1,12 @@
+// Required dependencies:
+// npm install d3 chart.js csv-parse fs chartjs-adapter-date-fns
+// node analyze_air_quality.mjs
+
+import fs from 'fs';
+import { parse } from 'csv-parse';
+import { createCanvas } from 'canvas';
+import Chart from 'chart.js/auto';
+import 'chartjs-adapter-date-fns'; // Import the date adapter
+import path from 'path';
+
+// ... (rest of your code remains unchanged)
\ No newline at end of file