% #This page demonstrates the simple download of the chart in the specified export format. #When the user clicks on the "Export to ..." button, #the exportChart function is called and FusionCharts("myFirstExport").exportChart will be invoked. #After capturing the data and processing it, a download dialog is shown to the user. %> <% @page_title="FusionCharts - Export chart and download the exported file" %> <% @page_heading="FusionCharts RoR Samples" %> <% @page_subheading="Export example - Export chart and download the exported file" %>
Right click on the chart to access various export options or click any of the buttons below
<%= javascript_tag "window._token = '#{form_authenticity_token}'" %> <% #Create the chart - Column 3D Chart with data from /Data/DownloadData.xml render_chart "/FusionCharts/Column3D.swf", "/Data/DownloadData.xml", "", "myFirstExport", 600, 300, false, true do-%> <% end -%>