Highcharts meteogram不加载数据

时间:2017-02-10 20:23:47

标签: javascript html json highcharts

我一直在用Highcharts进行气象图,直到2天前一切都很好。但现在我无法将图形可视化......我不明白它是什么!

这里抓住数据:

// On DOM ready...

// Set the hash to the yr.no URL we want to parse
if (!location.hash) {
    var place = 'United_Kingdom/England/London';
    location.hash = 'https://www.yr.no/place/' + place + '/forecast_hour_by_hour.xml';

}

// Then get the XML file through Highcharts' jsonp provider, see
// https://github.com/highcharts/highcharts/blob/master/samples/data/jsonp.php
// for source code.
$.getJSON(
    'https://www.highcharts.com/samples/data/jsonp.php?url=' + location.hash.substr(1) + '&callback=?',
    function (xml) {
        window.meteogram = new Meteogram(xml, 'container');
    }
);

在这里,我给你留下了整个JS小提琴:https://jsfiddle.net/0z7Lqub7/

0 个答案:

没有答案