summaryrefslogtreecommitdiff
path: root/assets/js/src/TaskTimeColumnChart.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src/TaskTimeColumnChart.js')
-rw-r--r--assets/js/src/TaskTimeColumnChart.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/assets/js/src/TaskTimeColumnChart.js b/assets/js/src/TaskTimeColumnChart.js
index a95424a0..1ecc486b 100644
--- a/assets/js/src/TaskTimeColumnChart.js
+++ b/assets/js/src/TaskTimeColumnChart.js
@@ -1,7 +1,8 @@
-function TaskTimeColumnChart() {
+function TaskTimeColumnChart(app) {
+ this.app = app;
}
-TaskTimeColumnChart.prototype.execute = function(app) {
+TaskTimeColumnChart.prototype.execute = function() {
var metrics = $("#chart").data("metrics");
var plots = [$("#chart").data("label")];
var categories = [];
@@ -28,7 +29,7 @@ TaskTimeColumnChart.prototype.execute = function(app) {
},
y: {
tick: {
- format: app.formatDuration
+ format: this.app.formatDuration
}
}
},