|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/FusionChart/Code/RoR/SampleApp/app/views/fusioncharts/form_based/ |
Upload File : |
<% @page_title=" FusionCharts - Form Based Data Charting Example " %>
<% @page_heading="FusionCharts Form-Based Data Example" %>
<% @page_subheading="Restaurant Sales Chart below" %>
<p class='text'>Click on any pie slice to see slicing effect. Or,
right click on chart and choose "Enable Rotation", and then drag and
rotate the chart.</p>
<%
# The xml is obtained as a string from builder template.
str_xml =render :file=>"fusioncharts/form_based/form_based_data",:locals=>{:str_soups => @str_soups,:str_salads => @str_salads,:str_sandwiches => @str_sandwiches,:str_beverages => @str_beverages,:str_desserts => @str_desserts}
#Create the chart - Pie 3D Chart with data from str_xml
render_chart '/FusionCharts/Pie3D.swf','',str_xml,'Sales', 500, 300, false, false do-%>
<% end -%>
<a href='javascript:history.go(-1);'>Enter data again</a>