filter function to chart format
filter function to chart format
FRUSTRATION - not being able to filter inside controller correctly