score:0

first you should aggregate your data returned from the database.use the sum() function.the correct format should be this:

date       | member 
-------------------
2016-06-23 | 5
2016-06-24 | 10

in the controller you should have an array.

data = [{date:"2016-0-23",member:5},{date:"2016-06-24",member:10}];

to create a simple chart you need the data and labels.

vm.labels = data.map(function (property) {return propery.date;});
vm.data = data.map(function (property) {return propery.member;});

on the html page:

<canvas id="line" class="chart chart-line" chart-data="vm.data" chart-labels="vm.labels"></canvas>

Related Query