# Simplegraph Clit tool to create a static HTML page which graph a CSV providing few arguments # Usage ``` ./create-graph.sh TITLE file.csv "Legend" colDate colValue ``` Note: **colDate** is of type *2021-10-04 15:37:28+08:00* # Example ``` ./create-graph.sh "XMR Rate" rate.csv "XMR Value" 0 3 ``` # Several graphs - Create each unique page ``` ./create-graph.sh "First graph" file.csv "first Value" 0 1 ./create-graph.sh "Second graph" file.csv "second Value" 0 1 ``` - Aggregate outputs ``` cat index.First_graph.html index.Second_graph.html > index.Several.html ``` - Edit aggregated output and do the following: - copy the function **Second_graph_onload** after the first function **First_graph_onload** - Remove the second reference to **window.onload** completely - Edit first reference to **window.onload** as follow ``` window.onload = function() { First_graph_onload(); Second_graph_onload(); } ```