score:1

Accepted answer

according to http://www.chartjs.org/docs/ data field is an array so your syntax should be:

var datenbarchart = obj;

...

var barchartdata = {
    labels : [ obj1[0], obj1[1], obj1[2], obj1[3], obj1[4], obj1[5], obj1[6]],
    datasets : [
        {
            fillcolor: "rgba(151,187,205,0.5)",
        strokecolor: "rgba(151,187,205,0.8)",
        highlightfill: "rgba(151,187,205,0.75)",
        highlightstroke: "rgba(151,187,205,1)",
            data : datenbarchart
        }
    ]

}

Related Query

More Query from same tag