Open orwant opened 9 years ago
I would suggest alternative Jquery graph plugins that support the vertical org chart
function, there a lot out there that are way better than googles chart api. Google
just isn't interested.
Original issue reported on code.google.com by jarred363
on 2014-10-09 06:48:31
Wow, five years without this adjustment, Google is losing space.
Original issue reported on code.google.com by fabiowebgraphic
on 2015-01-27 15:31:44
Solved mine issue with yEd editor
Original issue reported on code.google.com by vaclavblazej1
on 2015-01-27 15:49:54
This is also a challenge for us with a large organization.
Original issue reported on code.google.com by erpconsultingdotcom
on 2015-04-27 15:09:01
This is also a challenge for us with a large organization.
Original issue reported on code.google.com by erpconsultingdotcom
on 2015-04-27 15:09:02
I would like to know more about how making the chart posted in one of the comments and where can I see more info on j.saterf and how to make this possible?
Thanks
google.charts.load('current', {packages:["orgchart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Manager');
data.addColumn('string', 'ToolTip');
// For each orgchart box, provide the name, manager, and tooltip to show.
data.addRows([
[{v:'U.1', f:'Oliver'},'', ''],
[{v:'U.2', f:'Jack'},'U.1', ''],
[{v:'U.3', f:'Noah'}, 'U.2', ''],
[{v:'G.1', f:'<div data-group="G.1"></div>'}, 'U.2', ''],
[{v:'U.5', f:'Jacob'}, 'U.3', ''],
[{v:'U.6', f:'Charlie'}, 'U.1', '']
]);
var nodes = [
[{v:'U.7', f:'<div>Harry</div>'}, 'G.1', ''],
[{v:'U.8', f:'<div>Joshua</div>'}, 'G.1', ''],
[{v:'U.9', f:'<div>James</div>'}, 'G.1', ''],
[{v:'U.10', f:'<div>Ethan</div>'}, 'G.1', '']
];
var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
chart.draw(data, {allowHtml:true});
$("div[data-group]").each(function ()
{
var parent = $(this).parent();
$(this).css('position', 'absolute');
$(this).css('padding-top', '0');
parent.removeClass("google-visualization-orgchart-node");
parent.removeClass("google-visualization-orgchart-node-medium");
parent.css('vertical-align', 'top');
parent.css('min-width', '120px');
parent.css('vertical-align', 'top');
parent.css('padding-top', '0');
var group = $(this).data('group');
if(group !== undefined)
{
for(var i=0; i < nodes.length; i++)
{
var node = nodes[i];
if(node[1] === group)
{
$(this).append(node[0].f);
}
}
$('div', this).addClass("google-visualization-orgchart-node");
$('div', this).addClass("google-visualization-orgchart-node-medium");
$('div', this).css('margin-bottom','5px');
$('div', this).css('width', '100px');
}
});
}
This is example: http://plnkr.co/edit/bjKmAf1kGdAv3VcKJb8h
Very interested in this enhancement. Great tool, just needs a bit more control options.
I would love to see this enhancement.
Can we receive an update on this long running request?
With a bit more control for vertical display, if this enhancement is made, org chart will become great.
+1 from me
+1 from me
+1, Please add this enhancement, org charts for organizations with many high level leads are not practical in the horizontal form.
+1 from me too
+1 from me
i have 238 nodes and i face same problem, please suggest if anyone found solution
+1 after 6 years...
+1
+1
+1 Not sure how the current org chart can be used for real organisations
+1
I am using Google Org chat my project, Yes, Verical Display of leaves have issue, I have 500+ Node I am also facing same problem of org chat broken,
return [
{
v: `Linked Under ${row.code}`,
f: `Linked Under ${row.code}<div style="color:blue; font-style:italic">${row.details}</div>`,
},
`${row.code}`,
'Account Details',
]
+1.000
+1000
+100500
+1000
+1000
Original issue reported on code.google.com by
khenneman
on 2009-09-08 18:15:40