had to switch to calling a ROUTE instead of a PHP script as Flask does not execute PHP. Now we call /plot/site/param and the data is collected and retuned to showGraph()