-
-
Save zeroflag/be9a0cfc3f8c8c94d57f35b740217267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExpensePlot new | |
x: #key ; | |
y: #value; | |
data: ((self firstMonth to: self lastMonth) collect: [:i | i -> (self month: i) sum ]); | |
plot. | |
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalFood ]) average. | |
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalHousingExpense ]) average. | |
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalMedical ]) average. | |
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalEntertainment ]) average. | |
((self firstMonth to: self lastMonth) collect: [:i | ((self month: i) ) sum ]) average. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment