title: Plotting graph in C3.js using array
body: <p>I have two arrays. One is of names (nameArray) and the other is of count(countArray). 
  The values for the arrays will be obtained through an API.</p>
  
  <pre><code>var chart = c3.generate({
      bindto: '#chart',
      data: {
        columns: [
          ['data1', 30, 200, 100, 400, 150, 250]
        ]
      }
  });
  </code></pre>
  
  <p>The above code sample is available from C3.js website . I need it to behave differently.</p>
  
  <p>Sample arrays:-</p>
  
  <pre><code>nameArray=["name1","name2","name3"]
  countArray=[20,34,12]
  </code></pre>
  
  <p>In this example , I want names to be along X-axis and count to be along Y-Axis.
  Please help me achieve this. Thanks</p>