Commits

John Louis del Rosario committed aedd0b6

Start on renderer.

Comments (0)

Files changed (2)

ExpenseRenderer.pde

+class ExpenseRenderer {
+  public ExpenseRenderer(int w, int h){
+    size(w, h);
+    background(65);
+    stroke(255);
+    
+    init();
+  }
+
+  private void init(){
+    drawGraph();
+  }
+
+  /*
+   * Draw the graph
+   */
+  private void drawGraph(){
+    stroke(255);
+    line(20, 20, 20, height - 20);
+  }
+}
 void setup(){
+  ExpenseRenderer er = new ExpenseRenderer(400, 400);
   ExpenseParser ep = new ExpenseParser("Expenses.csv");
-  ep.getExpensesForDate("1/1/2011");
-  ep.getExpensesForDateRange("1/1/2011", "3/31/2011");
+  //ep.getExpensesForDate("1/1/2011");
+  //ep.getExpensesForDateRange("1/1/2011", "3/31/2011");
 }