<% @page_title="FusionCharts - Database Example" %> <% @page_heading="FusionCharts Database Example Using dataStr method" %> <% @page_subheading="Click on any pie slice to slice it out. Or, right click to enable rotation mode." %> <% #In this example, we show how to connect FusionCharts to a database. #For the sake of ease, we've used a database which contains two tables, which are linked to each #other. # The xml is obtained as a string from builder template. str_xml = render :file=>"fusioncharts/db_example/basic_factories_quantity",:locals=>{:factories => @factories} #Create the chart - Pie 3D Chart with data from strXML render_chart '/FusionCharts/Pie3D.swf', '', str_xml, 'FactorySum', 600, 300, false, false do-%> <% end-%>