score:0

Accepted answer

after a deep research:

    var model = @html.raw(json.serialize(interventioncounter));
    var monthlydata = [];
    $.each(model, function (index, item) {
        monthlydata .push(item.tostring());
    });

then at the chartjs script:

data: monthlydata,

solved my question. i'm marking this answer in order to help others in the future.


Related Query

More Query from same tag