Sign in to follow this  
santosh

Displaing The Charts

Recommended Posts

Hi All,

 

I have used the Fusion charts to display the charts.

 

Previous we were using render_chart_html, at that time it was plotting the chart properly,

 

Now we need to plot in the JavaScript so I am using render_chart but now it is displaying only charts label. not the chart.

 

Code <%str_xml = render(:file => '/xml_builder/users.builder', :locals=>{:data=>@dashboard_users})

render_chart '/FusionCharts/Bar2D.swf', '', str_xml, 'users_id', 292, 230, false, true,{:renderer=>"javascript"} do-%>

<%end%>

 

 

Can you Please help me in this issue.

 

Regards

Santosh

Share this post


Link to post
Share on other sites

It only displaying Chart text.

 

I have included all the javascripts.

 

Hi All,

 

I have used the Fusion charts to display the charts.

 

Previous we were using render_chart_html, at that time it was plotting the chart properly,

 

Now we need to plot in the JavaScript so I am using render_chart but now it is displaying only charts label. not the chart.

 

Code <%str_xml = render(:file => '/xml_builder/users.builder', :locals=>{:data=>@dashboard_users})

render_chart '/FusionCharts/Bar2D.swf', '', str_xml, 'users_id', 292, 230, false, true,{:renderer=>"javascript"} do-%>

<%end%>

 

 

Can you Please help me in this issue.

 

Regards

Santosh

Share this post


Link to post
Share on other sites

Thanks for your replay,

 

The problem is with the 's in the caption of xml,after removing the ' in the caption it worked fine.

 

Santosh

 

Hi,

 

Please make sure you have correctly mentioned the relative paths for the JS files.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Thanks for the appreciation!smile.gif

 

We are glad to know that your issue has been resolved.

 

Happy FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this