Highcharts json与coinbase

I want to make a coinbase chart :

$.getJSON("Getprice.php",   {},   function(data) {
        Price = data[1]['date'];

        $("#result").html(data[1]['date']);
        alert(Price);



    $('#container').highcharts({

        title: {
            text: 'July temperatures',
            type: 'datetime'
        },

        xAxis: {
            type: 'datetime'
        },

        yAxis: {
            title: {
                text: null
            }
        },

        tooltip: {
            crosshairs: true,
            shared: true,
            valueSuffix: '°C'
        },

        legend: {
        },

        series: [{
            name: 'Date',
            data: Price,
            zIndex: 1,
            marker: {
                fillColor: 'white',
                lineWidth: 2,
                lineColor: Highcharts.getOptions().colors[0]
            }
        }, {
            name: 'Range',
            data: data[2],
            type: 'arearange',
            lineWidth: 0,
            linkedTo: ':previous',
            color: Highcharts.getOptions().colors[0],
            fillOpacity: 0.3,
            zIndex: 0
        }]
    });
});

And the chart can't show up here's the coinbase url : https://www.coinbase.com/charts/price_history?days=365 I used in Getprice.php curl and header json just to get the page

A few clues

  • Your data should be JSON
  • date field should have name x, and time be timestamp (time in miliseconds)
  • value should have name y