<div class="report-widget">
    <h3><?= e($this->property('title')) ?></h3>

    <?php if (!isset($error)): ?>
        <div 
            data-control="chart-line" 
            data-time-mode="weeks"
            data-chart-options="xaxis: {mode: 'time'}"
            class="height-200"
        >

            <span 
                data-chart="dataset" 
                data-set-color="#008dc9"
                data-set-data="<?= $rows ?>"
                data-set-name="Visits"></span>

        </div>
    <?php else: ?>
        <p class="flash-message static warning"><?= e($error) ?></p>
    <?php endif ?>

</div>