title: Problem with assigning data to JQplot chart getting data dynamically using jquery
body: <p>I'm trying to do the following: Get some data from the backend and bind it with a JQplot candlestick chart.</p>
  
  <p>What i've accomplished: </p>
  
  <ul>
  <li>The data is being generated in the backend</li>
  <li>The data is being procured by using the $.get() function of jQuery.</li>
  </ul>
  
  <p>So heres the problem: </p>
  
  <p>The data , if i bind it to a variable by doing:</p>
  
  <pre><code>CASE I_
  ohlc = [['2011-01-03 09:30:00',325.7,325.99,324.82,325.39],['2011-01-03 09:35:00',325.44,326.74,325.4,326.46],['2011-01-03 09:40:00',326.54,327.38,326.38,327.23]];
  </code></pre>
  
  <p><a href="http://imageshack.us/photo/my-images/847/10386303.png" rel="nofollow">case 1 log screenshot</a></p>
  
  <p>It works like a breeze.</p>
  
  <p>But when i use </p>
  
  <pre><code>CASE II_
  $.get('MYSERVLET', function(data){
  ohlc = data;
  });
  </code></pre>
  
  <p><a href="http://imageshack.us/photo/my-images/195/97657158.png/" rel="nofollow">Case 2 log screenshot</a></p>
  
  <p>and the chart is generated , i get an error at the console saying: </p>
  
  <pre><code>Uncaught #&lt;Object&gt;
  init
  w.jqplot
  (anonymous function)
  jQuery.event.handle
  jQuery.event.add.elemData.handle.eventHandle
  </code></pre>
  
  <p>Also when i do a console.log in CASE I , i get them as arrays. But in CASE II , it looks like normal data . I dont know if thats of any help but i noticed this. </p>
  
  <p>Does anyone know how to fix this? What am i doing wrong?</p>