我正在尝试使用Highmaps作为Highcharts源文件(highcharts.js和map.js文件)的集成插件,如"入门"文档页面 - >"加载所需文件"部分所述.
对于系列类型,Map Bubble在页面上不显示任何内容.
见jsFiddle:
http :
//jsfiddle.net/mihaelaCiocoiu/pvPur/3/
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/maps/modules/data.js"></script>
<script src="http://www.highcharts.com/samples/data/maps/us.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
Run Code Online (Sandbox Code Playgroud)
$(function () {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=world-population.json&callback=?', function (data) {
$('#container').highcharts('Map', {
chart : {
borderWidth : 1
},
title: {
text: 'World population 2010 by country'
},
subtitle : {
text : 'Demo of Highcharts map with bubbles'
},
legend: {
enabled: false
},
mapNavigation: {
enabled: true,
buttonOptions: {
verticalAlign: 'bottom'
}
},
series : [{
name: 'Countries',
mapData: Highcharts.maps.world, …Run Code Online (Sandbox Code Playgroud) highcharts ×1