Changed plot style to improve clarity
This commit makes the dots smaller and changes their style from dots to
crosses. Also, the last dot is now blue instead of black, and the line
is a gradient from 50% black to 100% black so the line progress can be
seen clearer (because the lines cross several times).
Change-Id: Ibc41a4a5c0d27eed01244a450c38945537b93e69
diff --git a/cron/generateData.php b/cron/generateData.php
index 996fdcd..363f346 100644
--- a/cron/generateData.php
+++ b/cron/generateData.php
@@ -61,8 +61,11 @@
foreach ($summary as $regio => $summaryRegio) {
$file = fopen("/tmp/covid19graphgenerator-".$CODENAME[$regio].".dat", "w");
- foreach ($summaryRegio as $row)
- fwrite($file, $row["data"]." ".$row["ia14"]." ".$row["rho7"]."\n");
+ $i = 0;
+ foreach ($summaryRegio as $row) {
+ fwrite($file, $row["data"]." ".$row["ia14"]." ".$row["rho7"]." ".$i."\n");
+ ++$i;
+ }
fclose($file);
}