|
|
|
@ -2421,6 +2421,7 @@ nv.models.line = function() {
|
|
|
|
|
return chart;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TODO: Finish merging this chart into the NVD3 style!
|
|
|
|
|
nv.models.indentedTree = function() {
|
|
|
|
|
//Default Settings
|
|
|
|
|
var margin = {top: 0, right: 0, bottom: 0, left: 0},
|
|
|
|
@ -2430,7 +2431,8 @@ nv.models.indentedTree = function() {
|
|
|
|
|
id = Math.floor(Math.random() * 10000), //Create semi-unique ID incase user doesn't select one
|
|
|
|
|
childIndent = 20,
|
|
|
|
|
berHeight = 20,
|
|
|
|
|
options = {columns:[{key:'key', label: 'Name', type:'text'}]};
|
|
|
|
|
options = {columns:[{key:'key', label: 'Name', type:'text'}]},
|
|
|
|
|
tableClass = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2458,7 +2460,7 @@ nv.models.indentedTree = function() {
|
|
|
|
|
var wrap = d3.select(this).selectAll('div').data([[nodes]]);
|
|
|
|
|
var wrapEnter = wrap.enter().append('div').attr('class', 'wrap nvd3 indentedtree');
|
|
|
|
|
var tableEnter = wrapEnter.append('table');
|
|
|
|
|
var table = wrap.select('table').attr('width', '100%');
|
|
|
|
|
var table = wrap.select('table').attr('width', '100%').attr('class', tableClass);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//clear the container, start from scratch
|
|
|
|
@ -2651,6 +2653,12 @@ nv.models.indentedTree = function() {
|
|
|
|
|
return chart;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
chart.tableClass = function(_) {
|
|
|
|
|
if (!arguments.length) return tableClass;
|
|
|
|
|
tableClass = _;
|
|
|
|
|
return chart;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return chart;
|
|
|
|
|
}
|
|
|
|
|