title: Pass php variable to chart.js file
body: <p>Hi I have this array variable in my php file</p>
  
  <pre><code>$data_chart=[95,65,25,12,458,896,325];
  </code></pre>
  
  <p>and i had create a script as following</p>
  
  <pre><code> &lt;script&gt;
       var data = &lt;?php echo json_encode($data_chart); ?&gt;;
  
      &lt;/script&gt;
  </code></pre>
  
  <p>how i can pass the data variable into my chart-data.js file?(without embedding the variable in html tag)</p>