title: How to add datas to chart js from javascript array itself?
body: <p>I would like to use <a href="http://www.chartjs.org/docs/" rel="noreferrer">chart js</a> in there at data structure data, if i give number as</p>
  
  <p><code>data : [40,80,5,190,56,55,40]</code> working fine. If i give a array variable or string variable which holds that number like</p>
  
  <pre><code> var myvalues = my_array.toString(); 
     alert(myvalues);
  </code></pre>
  
  <p>am getting 5,10,14,18 for the variable as well as for array. Now when i use the array or string with the chart data  i can't able to get the chart if i try like the below</p>
  
  <pre><code>data : [myvalues]
  </code></pre>
  
  <p>with full code for barChartData</p>
  
  <pre><code>var barChartData = {
              labels: [description],
              datasets: [
                  {
                      fillColor: "rgba(220,220,220,0.5)",
                      strokeColor: "rgba(220,220,220,1)",
                      scaleOverride: true,
                      scaleSteps: 100,
                      stepValue: 1,
                      barShowStroke: false,
                      data: [myvalues]
                  },
                  {
                      fillColor: "rgba(151,187,205,0.5)",
                      strokeColor: "rgba(151,187,205,1)",
                      scaleOverride: true,
                      scaleSteps: 100,
                      barShowStroke: false,
                      stepValue: 1,
                      data: [myvalues]
                  }
              ]
  
          }
  </code></pre>
  
  <p>Here <code>description</code> is the another variable holding information about the label this too not working.</p>
  
  <p>How to assign data and labels from javascript array or string to the chart js?</p>