Skip to content

Instantly share code, notes, and snippets.

@trobrock
Created February 17, 2011 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trobrock/832182 to your computer and use it in GitHub Desktop.
Save trobrock/832182 to your computer and use it in GitHub Desktop.
var pnlChart = {
INCOME: [
{ interval: "Jan 2011", value: 100, name: null },
{ interval: "Feb 2011", value: 200, name: null },
{ interval: "Mar 2011", value: 300, name: null }
],
EXPENSE: [
{ interval: "Jan 2011", value: 100, name: null },
{ interval: "Feb 2011", value: 200, name: null },
{ interval: "Mar 2011", value: 300, name: null }
],
};
var expenseByCategory = {
EXPENSE: [
{ interval: null, value: 100, name: "Category name" },
{ interval: null, value: 200, name: "Category name" },
{ interval: null, value: 300, name: "Category name" }
]
};
var incomeAndExpense = {
INCOME: [
{ interval: null, value: 100, name: "Category name" },
{ interval: null, value: 200, name: "Category name" },
{ interval: null, value: 300, name: "Category name" }
],
EXPENSE: [
{ interval: null, value: 100, name: "Category name" },
{ interval: null, value: 200, name: "Category name" },
{ interval: null, value: 300, name: "Category name" }
]
};
@bcurren
Copy link

bcurren commented Mar 2, 2011

would be interesting to see a concrete example of:

  • p&l
  • income over time
  • expenses by category

It would help me see how this would work in practice.

@trobrock
Copy link
Author

trobrock commented Mar 2, 2011

I updated the structure to fit these three reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment