aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-09-29 18:57:40 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-09-29 18:57:40 -0400
commitfc6a3c2fd223d3c723c534768238182c917a2318 (patch)
tree6b05a9af3de6ba3bc060270a3e01fe30987257fc /app
parentcd88414abcffd94cfce933cf578ecc640b691381 (diff)
Add string delimiters for averages.
Before, if the average was equal to 0, it was displayed on the graph but the label was not displayed. Now, the label is displayed.
Diffstat (limited to 'app')
-rw-r--r--app/views/stats/index.phtml2
-rw-r--r--app/views/stats/repartition.phtml6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml
index 9b19cb560..fa57a77c0 100644
--- a/app/views/stats/index.phtml
+++ b/app/views/stats/index.phtml
@@ -104,7 +104,7 @@ function initStats() {
},{
data: avg,
lines: {show: true},
- label: <?php echo $this->average?>
+ label: "<?php echo $this->average?>"
}],
{
grid: {verticalLines: false},
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml
index b425c1458..750a3ffdc 100644
--- a/app/views/stats/repartition.phtml
+++ b/app/views/stats/repartition.phtml
@@ -67,7 +67,7 @@ function initStats() {
}, {
data: avg_h,
lines: {show: true},
- label: <?php echo $this->averageHour?>,
+ label: "<?php echo $this->averageHour?>",
yaxis: 2
}],
{
@@ -96,7 +96,7 @@ function initStats() {
}, {
data: avg_dow,
lines: {show: true},
- label: <?php echo $this->averageDayOfWeek?>,
+ label: "<?php echo $this->averageDayOfWeek?>",
yaxis: 2
}],
{
@@ -126,7 +126,7 @@ function initStats() {
}, {
data: avg_m,
lines: {show: true},
- label: <?php echo $this->averageMonth?>,
+ label: "<?php echo $this->averageMonth?>",
yaxis: 2
}],
{