1
我无法从Google电子表格中获取我的数据以显示在我用highmaps制作的地图上。我需要为每个州的2个数据点制作一个简单的美国地图覆盖图。高图添加和加入Google电子表格中的数据
数据点#1 - 每个状态收入
此人会进行颜色编码覆盖从去下1百万 - >超过500万每状态
数据点#2 - 每状态
作业对于这一个,我希望它显示每个州的工作号码。
这里是我到目前为止的代码:http://jsfiddle.net/abolotsko/v6KtZ/
$(function() {
// Initiate the chart
$('#container').highcharts('Map', {
data: {
googleSpreadsheetKey: '0AoIaUO7wH1HwdENPcGVEVkxfUDJkMmFBcXMzOVVPdHc'
},
chart: {
borderWidth: 1
},
title: {
text: 'Title'
},
legend: {
layout: 'horizontal',
borderWidth: 0,
backgroundColor: 'rgba(255,255,255,0.85)',
floating: true,
verticalAlign: 'top',
y: 25
},
title: {
text: 'Estimated Economic Activity'
},
colorAxis: {
min: 1,
type: 'logarithmic',
minColor: '#EEEEFF',
maxColor: '#000022',
stops: [
[0, '#EFEFFF'],
[0.67, '#4444FF'],
[1, '#000022']
]
},
series: [{
mapData: Highcharts.maps.us,
name: 'World map',
joinBy: 'code',
dataLabels: {
enabled: true,
color: 'white',
format: '{point.code}',
style: {
fontWeight: 'bold',
textShadow: '0 0 3px black',
textTransform: 'uppercase'
}
},
name: 'Jobs',
tooltip: {
pointFormat: '{point.code}: {point.value}'
}
}]
});
});
这里是谷歌电子表格的链接:https://docs.google.com/spreadsheet/ccc?key=0AsGsaoYbU9OwdG1xeVc0b1Q5STFhQlg2WGFveHRkWnc
SOLVED-最终结果:http://jsfiddle.net/abolotsko/v6KtZ/ *感谢帕维尔毕淑敏
谢谢!你在Highcharts论坛帮助我的人在哪里? – user3088202
是的,我想是这样:) –
谢谢。把这件事情从我的待办事项列表中删除。接下来,我们将所有的Excel电子表格转移到Google文档中,并将它们连接到Highcharts 3.0 – user3088202