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