FusionCharts Forum: Gantt Charting data from an array - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Gantt Charting data from an array through the builder I get correctly the xml code but my view doesn´t anything but the word "chart"

#1 User is offline   marmyg 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 10-May 10

Posted 10 May 2010 - 05:40 AM

Hello everyone!!



I´ve got a problem rendering a Gantt Chart in rails. I´m charting from arrays this is html.erb code:



<%

# The xml is obtained as a string from builder template.

str_xml = render "testplans/ss_gantt_data.builder",{:year_data => @years, :task_data => @tasks, :milestone_data => @milestones}



#Create the chart -Gantt Chart with data contained in str_xml

render_chart '/FusionCharts/FCF_Gantt.swf', '', str_xml, 'monitoringPlan', 600, 300, false, false do-%>

<% end -%>



I´ve checked that the xml generated by the builder is correct, I think...and It look like the xml attached.



And nothing but the word "Chart" is rendered!!



I think that the xml generated and the way I´m calling the render chart method are correct, so I´m going crazy!:crazy:



I don´t know where is the problem, if anyone could help me with this I would be so grateful!!



Thank you all!!!:D

Attached File(s)


0

Other Replies To This Topic

#2 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 10 May 2010 - 07:55 AM

Hi Marmyg,

Welcome to FusionCharts forum. :D

Could you please check whether you have included the 'FusionCharts.js' file in your sample that you are using to render the chart?

In case you have not included the js file, could you please try rendering the chart after including the JS file in your sample?

Please refer to the "JSClass" folder of the FusionWidgets pack for FusionCharts.js file.

Hope this helps. :)

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#3 User is offline   marmyg 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 10-May 10

Posted 10 May 2010 - 12:10 PM

Thank you very much!!!



I´ve been rendering other types of charts, where I had to do the same and I forgot this time!!I feel a bit stupid but also so happy my gantt is very nice now:D!!



Thanks again!!!
0

Other Replies To This Topic

#4 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 10 May 2010 - 11:06 PM

Hi,

You are most welcome. :D

Glad to know that your Gantt Chart is working fine now.

Please feel free to revert to me in case you face any further issues.

Keep smiling and keep FusionCharting. :hehe:

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

#5 User is offline   marmyg 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 10-May 10

Posted 13 May 2010 - 06:25 AM

Hello, I´m here again!!:D



Now I´m trying to chart a gantt where i could diplay to tasks per process and three milestones per task. I have just generated the xml file attached, and it render nothing but the first task per process with its three milestones, but nothing about the other task with its milestones...:ermm So I doubt if it is possible to do what I want..



If you could take a look at this, It would be very helpful for me!!



Thanks in advance!!!:)

Attached File(s)


0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic