I'm making a org chart as a narrative view.
If I do not tick "Contains HTML Markup" the result of the script is displayed. If I cut-n-past that content into a HTML file it display the result I'm looking for. However if I tick "Contains HTML Markup" the narrative view displays as empty.I have Attached two screenshots displaying this.
Any ideas what I'm not doing right? Have I forgotten some config to enable scripts in narrative view?
this is the script I'm using
Prefix:
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
\<script type='text/javascript'>
if(document.URL.indexOf("saw.dll?Answers") == -1) {
google.load('visualization', '1', {packages:\['orgchart'\]});
google.setOnLoadCallback(drawOrgChart);
}
function drawOrgChart() {
if(document.URL.indexOf("saw.dll?Answers") == -1) {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Manager');
data.addColumn('string', 'ToolTip');
var myOrgArray=\[\];
var tempStr = "";
Narrative:
myOrgArray.push(["@1","@3","@2"]);
Postfix
data.addRows(myOrgArray);
var chart = new google.visualization.OrgChart(document.getElementById('div\_orgchart'));
chart.draw(data, {allowHtml:true});
}
}
\</script>
\<div id='div\_orgchart'>\</div>

