Module | FusionChartsHelper |
In: |
lib/fusion_charts_helper.rb
|
Include this module wherever you want to use render_chart, render_chart_html and other functions Version 1.5 (August 2010) - Added other parameters as options hash. Added function enable_FC_print_manager_js to enable PrintManager. Version 1.4 (2010) - Added other parameters to the render_chart and render_chart_html methods. ( w_mode, color, scale_mode, lang, detect_flash_version,auto_install_redirect etc) Version 1.3 (March 2009) - debug_mode changes Version 1.2 (February 2009) - Compatible with rails 2.2 and above - removed the second parameter in concat. Version 1.1 (January 2009) - Added get_UTF8_BOM function
This function can be used when time needs to be added to the URL. This will help avoiding cache of the page rendered by the URL. Can be used for dataURL method.
This function returns the BOM for UTF8. BOM needs to be placed as first few bytes in the xml before providing to the chart. This can be used in the XML provider views.
Renders a chart from the swf file passed as parameter either making use of setChartDataURL method or setChartData method. The width and height of chart are passed as parameters to this function. If the chart is not rendered, the errors can be detected by setting debugging mode to true while calling this function. The chart can be registered with javascript by setting registerWithJS to true while calling this function.
Can be called from html block in the view where the chart needs to be embedded.
Deprecated from rails 2.2.2. Uses render_component. Renders a chart using the swf file passed as parameter by calling an action to get the xml for the setDataXML method. The width and height of chart are passed as parameters to this function. If the chart is not rendered, the errors can be detected by setting debugging mode to true while calling this function.
Can be called from html block in the view where the chart needs to be embedded.
Renders a chart from the swf file passed as parameter either making use of setChartDataURL method or setChartData method. The width and height of chart are passed as parameters to this function. If the chart is not rendered, the errors can be detected by setting debug mode to true while calling this function.
Can be called from html block in the view where the chart needs to be embedded.