From 210e8feae2fb4842bfb2de38666e6c41671fef3c Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 27 Sep 2017 12:42:48 -0400 Subject: removed lib --- .../vis/examples/graph3d/playground/datasource.php | 155 --------------------- 1 file changed, 155 deletions(-) delete mode 100644 www/lib/vis/examples/graph3d/playground/datasource.php (limited to 'www/lib/vis/examples/graph3d/playground/datasource.php') diff --git a/www/lib/vis/examples/graph3d/playground/datasource.php b/www/lib/vis/examples/graph3d/playground/datasource.php deleted file mode 100644 index 9c265cb9..00000000 --- a/www/lib/vis/examples/graph3d/playground/datasource.php +++ /dev/null @@ -1,155 +0,0 @@ - 10000) { - echo "google.visualization.Query.setResponse({ - version:'0.6', - reqId:'$reqId', - status:'error', - errors:[{reason:'not_supported', message:'Maximum number of datapoints exceeded'}] - });"; - - exit; -} - - -// output the header part of the response -echo "google.visualization.Query.setResponse({ - version:'0.6', - reqId:'$reqId', - status:'ok', - table:{ - cols:[ - {id:'x', - label:'x', - type:'number'}, - {id:'y', - label:'y', - type:'number'}, - {id:'value', - label:'', - type:'number'} - ], - rows:["; - -// output the actual values -$first = true; -$xstep = ($xmax - $xmin) / $xstepnum; -$ystep = ($ymax - $ymin) / $ystepnum; -for ($x = $xmin; $x < $xmax; $x+=$xstep) { - for ($y = $ymin; $y < $ymax; $y+=$ystep) { - $value = custom($x,$y); - - if (!$first) { - echo ",\n"; - } - else { - echo "\n"; - } - echo " {c:[{v:$x}, {v:$y}, {v:$value}]}"; - - $first = false; - } -} - - -// output the end part of the response -echo " - ] - } -}); -"; - - -/** - * Retrieve the request id from the get/post data - * @return {number} $reqId The request id, or 0 if not found - */ -function getReqId() { - $reqId = 0; - - foreach ($_REQUEST as $req) { - if (substr($req, 0,6) == "reqId:") { - $reqId = substr($req, 6); - } - } - - return $reqId; -} - - -?> -- cgit v1.2.3