| 1 package transactions; 2 3 import dinamica.*; 4 5 15 public class SalesChart extends GenericTransaction 16 { 17 18 21 public int service(Recordset inputParams) throws Throwable  22 { 23 24 int rc = super.service(inputParams); 25 26 27 Recordset rs = getChartInfoRecordset(); 28 29 30 rs.addNew(); 31 rs.setValue("title", "Compras Anuales"); 32 rs.setValue("title-x", "Aņo"); rs.setValue("title-y", "Monto en US$"); rs.setValue("column-x", "the_year"); 35 rs.setValue("column-y", "subtotal"); rs.setValue("title-series", null); rs.setValue("width", new Integer (300)); rs.setValue("height", new Integer (300)); rs.setValue("data", "total_per_year.sql"); 41 46 47 rs.setValue("chart-plugin", "dinamica.charts.VerticalBarChart"); 48 49 50 publish("chartinfo", rs); 51 52 return rc; 53 54 } 55 56 } 57 | Popular Tags |