summaryrefslogtreecommitdiff
path: root/assets/js/components
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-14 16:05:53 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-14 16:05:53 -0500
commit8ccdea006948d1cff7539bff3a0796af4913cec0 (patch)
treec47ef24f18f2d8b13a03c09dd05d6ced29d8a42d /assets/js/components
parentf5c95f3c9395f2fb7d2df136d6696c0fc26ac607 (diff)
Allow project charts to be rendered on the same page as task analytics
Diffstat (limited to 'assets/js/components')
-rw-r--r--assets/js/components/chart-task-time-column.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/components/chart-task-time-column.js b/assets/js/components/chart-task-time-column.js
index 887d24d4..89709952 100644
--- a/assets/js/components/chart-task-time-column.js
+++ b/assets/js/components/chart-task-time-column.js
@@ -10,9 +10,10 @@ KB.component('chart-task-time-column', function (containerElement, options) {
categories.push(metrics[i].title);
}
- KB.dom(containerElement).add(KB.dom('div').attr('id', 'chart').build());
+ KB.dom(containerElement).add(KB.dom('div').attr('id', 'chart-task-time-column').build());
c3.generate({
+ bindto: '#chart-task-time-column',
data: {
columns: [plots],
type: 'bar'