as the title says I want to use JVectorMap and colour regions with one set of data but display label of another value
$(function(){
$('#world-map-gdp').vectorMap({
map: 'world_mill_en',
backgroundColor: 'transparent',
series: {
regions: [{
values: gdpData,
scale: ['#FFDD00', '#FF0000'],
normalizeFunction: 'polynomial'
}]
},
onRegionLabelShow: function(e, label, code){
label.html(label.html()+' (U.S. troops present are '+gdpData[code]+')');
}
});
});
then this is a sample of the data I am calling
var gdpData = {
"US" :3011302, 75,
"IQ" :0, 74,
"IR" :0, 73,
"IF" :0, 72,
"JP" :54437, 71,
"DE" :49104, 70,
"GB" :13062, 69,
"IT" :11963, 68,
so basically I want to colour the US using the value of 75 on the scale and show the value of 3011302 when I hover over.
it would be greatly appreciated if someone out there could lend a hand. thanks.