Allow project charts to be rendered on the same page as task analytics
This commit is contained in:
6
assets/js/app.min.js
vendored
6
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -10,9 +10,10 @@ KB.component('chart-task-time-column', function (containerElement, options) {
|
|||||||
categories.push(metrics[i].title);
|
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({
|
c3.generate({
|
||||||
|
bindto: '#chart-task-time-column',
|
||||||
data: {
|
data: {
|
||||||
columns: [plots],
|
columns: [plots],
|
||||||
type: 'bar'
|
type: 'bar'
|
||||||
|
|||||||
Reference in New Issue
Block a user