系列数据为数组

I tried searching for the answer. I am sure it is very simple and basic, but I haven't been able to find anything on topic.

I have an array of integers I have gotten from a php query. I use this to transfer the data from php to javascript:

      var Hour07 = <?php echo json_encode($hour07); ?>;

If I do document.write(Hour07[0]); it outputs the number to the screen, so I can see that is storing data.

When I do this:

series: [{
          name: '7am',
          data: Hour07
        }]

Nothing comes up. If I replace Hour07 with [10,10,10] the chart displays correctly. It seems that it just doesn't like the array, although it took an array for categories . I have read various postings and some suggested converting the array to integer first which I tried.