Class | Fusioncharts::DbExampleController
In: | app/controllers/fusioncharts/db_example_controller.rb
Parent: | ApplicationController

There are two examples in this controller. *Pie-chart for total ouput quantities of each factory by getting data from database and using dataXML method *Pie-chart for total ouput quantities of each factory and a link to another chart which gives detailed information for selected factory All the views related to this controller will use the "common" layout. As per Ruby On Rails conventions, we have the corresponding views with the same name as the function name in the controller.

### Methods

basic_dbexample

### Public Instance methods

basic_dbexample()

This action retrieves the values from the database and constructs an array to hold, factory name and corresponding total output quantity. The view for this action basic_dbexample will use the array values to construct the xml for this chart. To build the xml, the view takes help from the builder file (basic_factories_quantity.builder)

[Validate]