<% # The following three variables are used in the "common" layout %> <% @page_title=" FusionCharts - Array Example using Stacked Column 3D Chart " %> <% @page_heading=" FusionCharts RoR Samples " %> <% @page_subheading="Plotting Stacked Chart from data contained in Array." %> <% #strCategories - Stores XML for the and child elements #strDataProdA - Stores XML for current year's sales #strDataProdB - Stores XML for previous year's sales #The xml is obtained as a string from builder template. str_xml = render :file=>"fusioncharts/array_example/stacked_data",:locals=>{:arr_data => @arr_data} #Create the chart - Stacked Column 3D Chart with data contained in str_xml render_chart "/FusionCharts/StackedColumn3D.swf", "", str_xml, "productSales", 500, 300, false, false do -%> <% end -%>