|
|
|
Junior Member
      
Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18,
Visits: 60
|
|
Hi,
I am making use of the following method to loop through display a list of drilldown charts in my jsp.
Is there a way to use registerWithJS using this code?This parameter is present with the fusionChart constructor.
//Create the chart - Pie 3D Chart with data from strXML
String chartCode=createChartHTML("./FusionCharts/Column2D.swf", strXML, "" , "xyz", 600, 300, false);
%>
<%=chartCode%>
Thanks,
Olives
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 7:54:06 AM
Posts: 644,
Visits: 1,948
|
|
| hi, Could you please try this code for enabling registerWithJS String chartCode=createChartHTML("./FusionCharts/Column2D.swf?registerWithJS=1", strXML, "" , "xyz", 600, 300, false);
Thanks,
Arindam FusionCharts Team
www.fusioncharts.com
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18,
Visits: 60
|
|
hi,
Thank you for the reply.
I am making use of Fusion chart version 3.0.5.this does not work.
One of the forum posts mentioned using fusion 3.0.6 for the registerWithJS=1 to be working.
Will it work with the trial version of 3.0.6?
Thanks,
olives
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 7:14:23 AM
Posts: 153,
Visits: 634
|
|
| Hi, Please note that registerWithJS works in both version 3.0.5 & 3.0.6, the only difference is that Print & SaveAsImage methods are not exposed in version 3.0.5. This will work with trial verion of 3.0.6 also.
Regards,
Rahul
FusionCharts Team.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: Today @ 4:44:15 AM
Posts: 18,
Visits: 60
|
|
Hi,
I am working on rendering of fusion charts on portlets (liferay-tomcat).
I actually tried the javascript invocation on a simple apache server and everything works fine.
But when i use it on liferay,things go for a toss.
In the velocity template ,i give the property for click url of the chart as follows:
clickURL='JavaScript:%26lt;portlet%3Anamespace%2F%26gt;TestMethod();'
Then pass the registerWithJS parameter as follows in jsp:
<%
String url=chart.getFusionChartSWFFile()+"?registerWithJS=1";
String chartHTMLCode=createChartHTML(url, "",strXML,"MainChartId_${loopStatus.index}", 400, 300, true);
%><%=chartHTMLCode%>
The javascript given in jsp is as follows:
pleasefind the code in ChartDebugger.txt attched.
The chart debugger has no errors.The javascript invocation in the chart debugger is as follows:ChartDebugger.txt attched.
If anyone has worked on fusioncharts for portlets or has any idea please feel free to suggest.
Thanks,
olives
|
|
|
|