summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/TaskTimeColumnChart.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/assets/js/src/TaskTimeColumnChart.js b/assets/js/src/TaskTimeColumnChart.js
deleted file mode 100644
index 9b26d76e..00000000
--- a/assets/js/src/TaskTimeColumnChart.js
+++ /dev/null
@@ -1,47 +0,0 @@
-Kanboard.TaskTimeColumnChart = function(app) {
- this.app = app;
-};
-
-Kanboard.TaskTimeColumnChart.prototype.execute = function() {
- if (this.app.hasId("analytic-task-time-column")) {
- this.show();
- }
-};
-
-Kanboard.TaskTimeColumnChart.prototype.show = function() {
- var chart = $("#chart");
- var metrics = chart.data("metrics");
- var plots = [chart.data("label")];
- var categories = [];
-
- for (var i = 0; i < metrics.length; i++) {
- plots.push(metrics[i].time_spent);
- categories.push(metrics[i].title);
- }
-
- c3.generate({
- data: {
- columns: [plots],
- type: 'bar'
- },
- bar: {
- width: {
- ratio: 0.5
- }
- },
- axis: {
- x: {
- type: 'category',
- categories: categories
- },
- y: {
- tick: {
- format: this.app.formatDuration
- }
- }
- },
- legend: {
- show: false
- }
- });
-};