I'm using Google Org chart for a project and the content of the chart is flowing outside of the containing div. The div is highlighted in red below. I would like the nodes of the chart to move to the next line in the event it will flow outside of the div. (Alice would move to the next row and the data would continue.)
See my fiddle here
The result of what I have is:
And currently standard org chart data but without connections.
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Manager');
data.addColumn('string', 'ToolTip');
data.addRows([
[{v:'Mike', f:'Mike'}, '', 'The President'],
[{v:'Jim', f:'Jim'}, '', 'VP'],
['Alice', '', ''],
['Bob', '', 'Bob Sponge'],
['Carol', '', '']
]);
var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
var options = {
allowHtml: true
};
chart.draw(data, options);
}