function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PalakPalak 

AnyGantt integration with salesforce

Hi all,

 

I am trying to integrate anygantt chart with visualforce. I am using the following code :

 

<apex:page showHeader="false">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AnyChart Sample</title>
<script type="text/javascript" language="javascript" src="./js/AnyChart.js"></script>
<apex:includeScript value="{!$Resource.AnyChartJS}"/>
</head>
<body>
<script type="text/javascript" language="javascript">
//<![CDATA[
var chart = new AnyChart("{!$Resource.AnyChartFlash}");
chart.width = 900;
chart.height = 400;
chart.setXMLFile("{!$Resource.AnyChartXML}");
chart.write();
//]]>
</script>
</body>
</html>
</apex:page>

 

And Following XML (as static resource) :

 

<anygantt>
<project_chart>
<tasks>
<task id="1" name="Architectural Design" actual_start="2008/01/01" actual_end="2008/01/02" progress="50" />
<task id="2" name="Interior Design" actual_start="2008/02/01" actual_end="2008/03/01" progress="35" />
<task id="3" name="Construction Phase" actual_start="2008/02/10" actual_end="2008/04/18" progress="0" />
<task id="4" name="Decoration Phase" actual_start="2008/04/01" actual_end="2008/05/10" progress="0" />
<task id="5" name="Opening Celebration" actual_start="2008/05/20" progress="0" />
</tasks>
</project_chart>
</anygantt>

 

 

when I am running the above code it shows loading of xml but nothing gets load. Please help me, if anyone has done already it. 

 

Thanks in advance

 

With Regards

Palak Agarwal