Simple generator of all the D3 bubble chart

This commit is contained in:
Alexandre Dulaunoy 2017-04-21 13:18:55 +02:00
parent fa207a7546
commit 1d15d4f2b6

10
bin/stats/generate.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
#
# Quick-and-dirty(tm) hack to generate the D3 js bubble charts from the
# CSV files exported from get_stats.py. The template.html contains the source file.
for file in *.csv ; do
field=$( echo ${file} | cut -f1 -d.)
echo ${field}
cat "template.html" | sed -e "s/##FIELD##/${field}/g" >${field}.html
done