Added Markdown editor and Javascript code refactoring
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
function CumulativeFlowDiagram() {
|
||||
}
|
||||
Kanboard.CumulativeFlowDiagram = function(app) {
|
||||
this.app = app;
|
||||
};
|
||||
|
||||
CumulativeFlowDiagram.prototype.execute = function() {
|
||||
Kanboard.CumulativeFlowDiagram.prototype.execute = function() {
|
||||
if (this.app.hasId("analytic-cfd")) {
|
||||
this.show();
|
||||
}
|
||||
};
|
||||
|
||||
var metrics = $("#chart").data("metrics");
|
||||
Kanboard.CumulativeFlowDiagram.prototype.show = function() {
|
||||
var chart = $("#chart");
|
||||
var metrics = chart.data("metrics");
|
||||
var columns = [];
|
||||
var groups = [];
|
||||
var categories = [];
|
||||
var inputFormat = d3.time.format("%Y-%m-%d");
|
||||
var outputFormat = d3.time.format($("#chart").data("date-format"));
|
||||
var outputFormat = d3.time.format(chart.data("date-format"));
|
||||
|
||||
for (var i = 0; i < metrics.length; i++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user