diff options
Diffstat (limited to 'py/air-quality/analyze_air_quality.mjs')
-rw-r--r-- | py/air-quality/analyze_air_quality.mjs | 12 |
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 |