summaryrefslogtreecommitdiff
path: root/app/Template/analytic/cfd.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-21 21:12:24 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-21 21:12:24 -0400
commit81e40e2c910f0be3f6031445a4d2c1714cdeb385 (patch)
treed571857cff71af4e351327edc70e971758259239 /app/Template/analytic/cfd.php
parent1465ca1ae1510cd399b8f408ce7bf8058ed26955 (diff)
Replace dimplejs by c3js for chart drawing
Diffstat (limited to 'app/Template/analytic/cfd.php')
-rw-r--r--app/Template/analytic/cfd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/analytic/cfd.php b/app/Template/analytic/cfd.php
index 26696b31..ab706d56 100644
--- a/app/Template/analytic/cfd.php
+++ b/app/Template/analytic/cfd.php
@@ -3,10 +3,10 @@
</div>
<?php if (! $display_graph): ?>
- <p class="alert"><?= t('Not enough data to show the graph.') ?></p>
+ <p class="alert"><?= t('You need at least 2 days of data to show the chart.') ?></p>
<?php else: ?>
<section id="analytic-cfd">
- <div id="chart" data-url="<?= $this->url->href('analytic', 'cfd', array('project_id' => $project['id'], 'from' => $values['from'], 'to' => $values['to'])) ?>"></div>
+ <div id="chart" data-metrics='<?= json_encode($metrics) ?>' data-date-format="<?= e('%%Y-%%m-%%d') ?>"></div>
</section>
<?php endif ?>