/q.st
Created
December 31, 2021 14:26
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