Module: Easyfsf::FCFRenderer
- Defined in:
- lib/easyfsf.rb
Class Method Summary collapse
-
.render_chart(chart_swf, chart_xml, chart_id, chart_width, chart_height) ⇒ Object
차트의 xml 데이타를 <fusionchatfree />형식으로 나타내어서 javascript 코드에서 파싱해서 차트를 그려줄 수 있게끔 합니다.
Class Method Details
.render_chart(chart_swf, chart_xml, chart_id, chart_width, chart_height) ⇒ Object
차트의 xml 데이타를 <fusionchatfree />형식으로 나타내어서 javascript 코드에서 파싱해서차트를 그려줄 수 있게끔 합니다.
198 199 200 201 202 203 204 205 206 |
# File 'lib/easyfsf.rb', line 198 def self.render_chart(chart_swf, chart_xml, chart_id , chart_width, chart_height) chart_width=chart_width.to_s chart_height=chart_height.to_s htmlString = "" htmlString << "<div id='#{chart_id}Div' class='fusionchart'>\n\t\t\t\tChart.\n\t\t" htmlString << "<fusionchartfree swf='#{chart_swf}' chart_id='#{chart_id}' chart_width='#{chart_width}' chart_height='#{chart_height}' chart_xml='#{chart_xml}' />" htmlString << "</div>" return htmlString end |