{extends "Data/statistics.tpl"} {block name="minifiedStats"}
  • Downloads  {$allDownloads}
  • Besucher  {$allVisitors}
  • {/block} {block name="body"}

    Besucher pro Tag Statistik

    Statistik

    Bezeichnung: Gesamt: Letzte 7 Tage Letzten 30 Tage
    Downloads: {$allDownloads} Coming Soon Coming Soon
    Besucher: {$allVisitors} Coming Soon Coming Soon
    Traffic: {$traffic} GB Coming Soon Coming Soon
    {block name="ajaxAppend"}{/block}
    {/block} {block name="additionalJSFiles"} {/block} {block name="additionalJSCode"} var userCtx = document.getElementById("userLineChart").getContext("2d"); var userLineConfig = { type: 'line', data: { labels: {$stats->getDateLabels()}, datasets:[ { label: 'Besucher pro Tag', data: {$stats->getUserDateRows()|json_encode}, backgroundColor: 'rgba(107,176,255,0.5)', borderColor: 'rgba(107,176,255,1)' }, { label: 'Downloads pro Tag', data: {$stats->getDownloadDateRows()|json_encode}, backgroundColor: 'rgba(191,63,63,0.5)', borderColor: 'rgba(191,63,63,1)' } ] }, options: { responsive: true, scales: { yAxes: [{ ticks: { beginAtZero: true, stepSize: 10 } }] }, tooltips: { mode: 'label' }, hover: { mode: 'dataset' } } }; window.userLine = new Chart(userCtx, userLineConfig); {/block}