Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在使用Highcharts renderer.rect函数时删除边框半径_Javascript_Html_Css_Highcharts - Fatal编程技术网

Javascript 如何在使用Highcharts renderer.rect函数时删除边框半径

Javascript 如何在使用Highcharts renderer.rect函数时删除边框半径,javascript,html,css,highcharts,Javascript,Html,Css,Highcharts,如何删除rendered.rect方法的边界半径。 我尝试添加css方法,但没有成功 .css({ borderRadius: 'none' }) 这是我的密码 Highcharts.chart('container'{ 图表:{ 类型:“列” }, xAxis:{ 类别:[一月、二月、三月、四月、五月、六月、七月、八月、九月、十月、十一月、十二月] }, 亚克斯:{ 最高:300 }, 系列:[{ 数据:[29.9,71.5,106.4,129.2,144.0,176.0,135.6

如何删除rendered.rect方法的边界半径。 我尝试添加css方法,但没有成功

.css({
   borderRadius: 'none'
})
这是我的密码

Highcharts.chart('container'{
图表:{
类型:“列”
},
xAxis:{
类别:[一月、二月、三月、四月、五月、六月、七月、八月、九月、十月、十一月、十二月]
},
亚克斯:{
最高:300
},
系列:[{
数据:[29.9,71.5,106.4,129.2,144.0,176.0,135.6148.5,216.4194.1,95.6,54.4]
}]
},功能(图表){
设maxPoint=chart.series[0].data.reduce((a,b)=>a.y>b.y?a:b);
对于(var i=0;i,
.rect()
的语法是:

矩形([x][,y][,宽度][,高度][,r][,笔划宽度])

第五个参数是边界角半径,因此只需将其设置为0

chart.renderer.rect(
  point.plotX + chart.plotLeft + 5, 
  maxPoint.plotY + chart.plotTop - 25, 
  box.width + 10, 
  box.height + 10, 
  0
)...
Highcharts.chart('container'{
图表:{
类型:“列”
},
xAxis:{
类别:[一月、二月、三月、四月、五月、六月、七月、八月、九月、十月、十一月、十二月]
},
亚克斯:{
最高:300
},
系列:[{
数据:[29.9,71.5,106.4,129.2,144.0,176.0,135.6148.5,216.4194.1,95.6,54.4]
}]
},功能(图表){
设maxPoint=chart.series[0].data.reduce((a,b)=>a.y>b.y?a:b);
对于(var i=0;i