【发布时间】:2021-08-20 15:59:32
【问题描述】:
我正在使用 Highcharts 来显示 BoxPlot 图表。 以下是此图表的示例:http://jsfiddle.net/tLucL6mq/3/。
$('#container').highcharts({
chart: {
type: 'boxplot',
inverted: true
},
title: {
text: 'Sample Base Salary Range'
},
legend: {
enabled: false
},
xAxis: {
categories: ['4', '3', '2', '1', '0'],
title: {
text: 'Job Level'
}
},
yAxis: {
title: {
text: 'Base Salary'
}
},
plotOptions: {
boxplot: {
fillColor: '#F0F0E0',
lineWidth: 2,
medianColor: '#0C5DA5',
medianWidth: 3
}
},
series: [{
name: "Observation Data",
data: [
['0', 68, 75, 79, 82, 84, 89], //level 4 - category 0
['1', 53, 63, 68, 72, 75, 79], //level 3 - category 1
['2', 47, 52, 59, 64, 67, 68], //level 2 - category 2
['3', 35, 37, 39, 42, 46, 51], //level 1 - category 3
['4', 32, 33, 34, 38, 40, 45] //level 0 - category 4
],
tooltip: {
headerFormat: '<b>{point.series.name}</b><br/><em>Job Level: {point.x}</em><br/>',
pointFormat: '- Max: {point.high}<br/>' +
'- Q3: {point.q3}<br/>' +
'- Median: {point.median}<br/>' +
'- Q1: {point.q1}<br/>' +
'- Min: {point.low}<br/>'
}
}]
});
我想添加边框半径,但我没有找到这个选项。 我尝试将它添加到很多位置。但没有成功。
有什么帮助吗?
【问题讨论】:
-
这是您要增加的边界半径吗:jsfiddle.net/ewolden/tLucL6mq/166 ?
-
@ewolden,是的,我想绕过这个边界。
-
如果不改变 highcharts 的行为,我认为这是不可能的。请参阅此处了解 highcharts 如何绘制箱线图的方框部分:github.com/highcharts/highcharts/blob/master/js/parts-more/…
标签: highcharts angular6