title: Add data to the graph by a variable
body: <p>I am using <a href="http://morrisjs.github.io/morris.js/" rel="nofollow">this</a> plugin to play with charts; now, I just want to know how can I add data through a JSON string to this graph:</p>
  
  <pre><code>Morris.Line({
    element: 'line-example',
    data: [
      { y: '2006', a: 100, b: 90 },
      { y: '2007', a: 75,  b: 65 },
      { y: '2008', a: 50,  b: 40 },
      { y: '2009', a: 75,  b: 65 },
      { y: '2010', a: 50,  b: 40 },
      { y: '2011', a: 75,  b: 65 },
      { y: '2012', a: 100, b: 90 }
    ],
    xkey: 'y',
    ykeys: ['a', 'b'],
    labels: ['Series A', 'Series B']
  }); 
  </code></pre>
  
  <p><a href="http://jsbin.com/uqawig/441/embed?js,output" rel="nofollow">JSBin Link</a></p>
  
  <p>I have tried to add data through a JSON string but getting a syntax error</p>
  
  <pre><code>var data-graph = "[{ y: '2006', a: 100, b: 90 },{ y: '2007', a: 75,  b: 65 },{ y: '2008', a: 50,  b: 40 },{ y: '2009', a: 75,  b: 65 },{ y: '2010', a: 50,  b: 40 },{ y: '2011', a: 75,  b: 65 },{ y: '2012', a: 100, b: 90 }]";
  
  
  Morris.Line({
    element: 'line-example',
    data: data-graph,
    xkey: 'y',
    ykeys: ['a', 'b'],
    labels: ['Series A', 'Series B']
  });
  </code></pre>
  
  <p>Surely I am not giving data in an appropriate way. How can I add data by a variable or JSON string and what I am doing wrong with this?</p>