【问题标题】:Changing Data for HighMaps JQuery to a local file将 HighMaps JQuery 的数据更改为本地文件
【发布时间】:2014-10-21 18:00:32
【问题描述】:

我正在使用这个code - Jfiddle link 创建美国的数据地图。我想通过使用本地存储的文件来修改示例中的数据集。

数据似乎存储在位于以下位置的文件中:http://www.highcharts.com/samples/data/us-population-density.json

我将文件名更改为本地驱动器,但无法加载图表。我需要进行哪些更改?

参考我的本地驱动器:

$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=C:/us-population-density.json&callback=?', function (data) {

【问题讨论】:

标签: javascript jquery json highcharts highmaps


【解决方案1】:

试试:

 $.getJSON('us-population-density.json', function(data) {

根据highcharts reference

【讨论】:

    猜你喜欢
    • 2014-10-25
    • 2019-11-20
    • 1970-01-01
    • 2018-03-28
    • 2010-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多