Javascript 类型错误:a是未定义的Highmaps
我正在尝试创建highmaps,但出现以下错误:Javascript 类型错误:a是未定义的Highmaps,javascript,highcharts,highmaps,Javascript,Highcharts,Highmaps,我正在尝试创建highmaps,但出现以下错误: TypeError: a is undefined highmaps.js:11:348 这似乎是javaScript库(highmaps)加载问题,但我无法解决 我们如何解决这个问题 这是我的密码: $('#container').highcharts('Map', { title : { text : '' }, subtitle : {
TypeError: a is undefined highmaps.js:11:348
这似乎是javaScript库(highmaps)加载问题,但我无法解决
我们如何解决这个问题
这是我的密码:
$('#container').highcharts('Map', {
title : {
text : ''
},
subtitle : {
text : ''
},
mapNavigation: {
enabled: true,
buttonOptions: {
verticalAlign: 'bottom'
}
},
credits:false,
colorAxis: {
min: 0,
minColor: '#ffb899',
stops: [
[0, '#ff9966'],
[0.67, '#c9433f'],
[1, '#7e3045']
]
},
series : [{
data : [{
"hc-key": "tr-aa",
"value": 190.00,
"indikator_id":138,
"indikator_id":138,
"donem":"2015-4.Dönem",
"city":1
}],
mapData: Highcharts.maps['countries/tr/tr-all'],
joinBy: 'hc-key',
name: 'İndikatör Toplam Değeri',
point:{
events:{
click:function(){
$('div#mapModal').modal();
$.ajax({
type:'POST',
url:'ajax/map_data_ajax.php',
data:this.options,
success:function(res){
$('div#mapData').html(res);
console.log(res);
}
});
}
}
},
borderColor: '#fff',
borderWidth: 1.2,
states: {
hover: {
color: '#0086ff'
}
},
dataLabels: {
enabled: true,
format: '{point.name}',
color:'#fff'
}
}]
});
这是
您将在小提琴上看到此错误:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
我们如何解决这个问题
谢谢我犯了一个简单的错误。javascript加载通常不存在任何错误。 错误与信用有关 它不是
credits:false
。它将是这样的:
credits:{
enabled:false
}
现在,这是工作:
无论如何,谢谢。我犯了一个简单的错误。通常情况下,javascript加载不存在任何错误。 错误与信用有关 它不是
credits:false
。它将是这样的:
credits:{
enabled:false
}
现在,这是工作:
无论如何,谢谢。只是一件事,
数据
对象的内容格式不正确,我的意思是它不是JSON格式。将逗号(,
)放在。。包括jQuerynope。。它没有经过编辑。。查看数据
对象在系列
数组中的json值只是一件事,数据
对象的内容格式不正确,我的意思是它不是json格式。将逗号(,
)放在。。包括jQuerynope。。它没有经过编辑。。查看数组中数据对象的json值