Javascript array or Google Charts view.setColumns?
<p>I dont know the topic Sorry for title. anybody who understand my question could edit my question title.</p>

<p>Script:</p>

<pre><code>// I get checkboxes values with using this function
var myValues = $(".filter:checked").map(function () {
    return this.value;
}).get();

alert("[0," + myValues + "]");
var view = new google.visualization.DataView(new google.visualization.DataTable(evalledData, 0.5));
view.setColumns([0, myValues]); // I pass the checked values.
</code></pre>

<p>When I write above code I got this error: <code>"type" must be specified</code></p>

<p>If I wrote <code>view.setColumns([0, 1,2,3,4]);</code> It works.</p>

<p>alert output : <code>[0,1,2,3,4]</code> so there is no difference between two usage.</p>

<p>Why I got this error.</p>

<p>Thanks.</p>
