chart = $('#queue_report').highcharts({
chart: {
backgroundColor: 'white',
events: {
load: function () {
chart = this;
var ren = this.renderer,
ren.label('<a href="http://devservices.csnzoo.com:15672/#/queues/storm_queues/oms_pre_process_order" target="_blank" >oms_validation_pre_sa</a>', 250, 60)
.attr({
fill: '#7b2d66',
stroke: 'white',
'stroke-width': 2,
padding: 5,
r: 5
})
.css({
color: 'white',
width: '100px'
})
.add(data.all_queues_data[0][0])
.shadow(true);
警告日志: [周五2015年7月17日09:40:11 GMT-0400(东部夏令时间)] runRoute get#/ queues / storm_queues / oms_pre_process_order sammy-0.6.0.min.js:5
[Fri Jul 17 2015 09:40:11 GMT-0400(Eastern Daylight Time)] 404 Not Found get#/ queues / storm_queues / oms_pre_process_order错误:404 Not Found 获取#/ queues / storm_queues / oms_pre_process_order
所以,我解决了这个问题。只需在标签上添加一个属性即可。希望这会有所帮助。
ren.label('oms_pre_process_order<br/>' + 'Messages:' + data.all_queues_data[26][1] + ' ' + 'Errors:' + data.all_queues_data[28][1], 40, 240)
.attr({
fill: '#ba3025',
stroke: 'white',
'stroke-width': 2,
padding: 5,
r: 5
})
.css({
color: 'white',
width: '100px'
})
.on('click',function(){
var win = window.open("http://devservices.csnzoo.com:15672/#/queues/storm_queues/oms_pre_process_order", '_blank');
win.focus();
})
.add(data.all_queues_data[0][0])
.shadow(true);