Feature/256 financial graph checkboxes

https://trello.com/c/THZBdt2d/256-financial-graphs-should-be-controlled-by-tick-boxes
what if types is undefined?