Commit 358c46e6 authored by speedprogs_de's avatar speedprogs_de

chart testing

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@51739 735d13b6-9817-0410-8766-e36946ffe9aa
parent 0fb240c1
......@@ -42,7 +42,7 @@
<div id="%1$s" style="height:%2$s;width:%3$s;"></div>
<script type="text/javascript">
$(document).ready(function(){
$.jqplot(\'%1$s\', [[%4$s]], {%5$s});
$.jqplot(\'%1$s\', %4$s, {%5$s});
});
</script>
';
......@@ -72,7 +72,7 @@
$id = uniqid('chart_');
$height = (int) $height . 'px';
$width = (int) $width . 'px';
$points = implode(',', $points);
$points = json_encode(array($points));
$options = '
series:[{color:\'' . $color . '\'}]
';
......@@ -94,7 +94,7 @@
if ($type === 'downloads') {
$versions = $extension->getVersions();
foreach ($versions as $version) {
$result[] = "['" . $version->getVersionNumber() . "'," . (int) $version->getDownloadCounter() . "]";
$result[] = /*array((string) $version->getVersionString(),*/ (int) $version->getDownloadCounter()/*)*/;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment