how to get array of array in javascript
<p><strong>I'm creating graph and for this I need data in this form in javascript:</strong></p>

<pre><code>var currYear = [["2011-08-01",796.01], ["2011-08-02",510.5], ["2011-08-03",527.8], ["2011-08-04",308.48]]
</code></pre>

<p><strong>Data is coming from JSON</strong></p>

<pre><code>var total_click = JSON.parse(&lt;%=raw @report.to_json %&gt;);
var i=0;
var graph_type = "";
var graph_typ = new Array();
while(i &lt; total_click.length){
graph_typ.push("['"+total_click[i].report_date+"',"+total_click[i].clicks+"]");
i++;
}
</code></pre>

<p><strong>Data which I get from this is below</strong></p>

<pre><code>['2012-03-19',48],['2012-03-20',14],['2012-03-21',934]
</code></pre>

<p><strong>How do I get this format</strong></p>

<pre><code>[['2012-03-19',48],['2012-03-20',14],['2012-03-21',934]]
</code></pre>
