<%= stylesheet_link_tag "style" %> <%= javascript_include_tag "jquery-1.4.2.min" %> <%= javascript_include_tag "lib" %> <%= javascript_include_tag "DD_belatedPNG_0.0.8a-min" %> <% #You need to include the following JS files, if you intend to embed the chart using JavaScript. #Embedding using JavaScripts avoids the "Click to Activate..." issue in Internet Explorer #When you make your own charts, make sure that the path to this JS file is correct. Else, you would get JavaScript errors. %> <%= javascript_include_tag "FusionCharts" %>

FusionCharts Form-Based Data Example

Please enter how many items of each category you sold within this week. We'll plot this data on a Pie chart.

To keep things simple, we're not validating for non-numeric data here. So, please enter valid numeric values only. In your real-world applications, you can put your own validators.

<% form_tag(:action=>'chart') do -%>
Soups:   bowls
Salads:   plates
Sandwiches:   pieces
Beverages:   cans
Desserts:   plates
 
<% end -%>