0
我尝试使用水平十字线作为某种辅助线来比较错误条的上下端点。Highcharts errorors with corsshairs
从统计的角度来看,它是通过比较置信区间进行某种虚拟显着性检验。
我的问题是,给出一个柱形图我不能达到与十字线的错误条的下端点。
这里is a fiddle(来自Highcharts的简化演示)。
var chart;
$(function() {
$('#container').highcharts({
chart: {
zoomType: 'xy'
},
title: {
text: 'Temperature vs Rainfall'
},
xAxis: [{
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
}],
yAxis: [{
title: {
text: 'Rainfall',
style: {
color: Highcharts.getOptions().colors[0]
}
},
labels: {
format: '{value} mm',
style: {
color: Highcharts.getOptions().colors[0]
}
}
}],
tooltip:{
crosshairs: [false, {color: 'red'}],
formatter: function(){
return false;
}
},
series: [{
name: 'Rainfall',
type: 'column',
yAxis: 0,
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
}, {
name: 'Rainfall error',
type: 'errorbar',
yAxis: 0,
data: [[42, 51], [66, 73], [90, 110], [128, 136], [140, 150], [171, 179], [135, 143], [142, 149], [204, 220], [189, 199], [90, 110], [52, 56]],
}]
});
});
欢迎任何建议!
我不知道这将如何告诉你任何东西,除非你的错误都是以相同的y值为中心。如果是这样的话,我认为使用plotLine显示单个参考线或适当格式化线条系列会更好。 – jlbriggs 2014-11-03 21:40:18