【发布时间】:2020-12-11 04:28:18
【问题描述】:
我正在尝试在 jqueryVector Map 上可视化我的 django 模型数据的六列,但我不知道该怎么做。我需要尽快答复。
$(function() {
$('#map').vectorMap({
map: 'world_mill_en',
series: {
regions: [{
values: gdpData,
scale: ['#C8EEFF', '#0071A4'],
normalizeFunction: 'polynomial'
}]
},
backgroundColor: '#eef3f7',
onLabelShow: function(e, el, code) {
el.html(el.html() + ' (GDP - ' + gdpData[code] + ')');
}
});
});
【问题讨论】:
标签: javascript python html jquery django