[英]Draw custom bars in a Highcharts bar chart
I'd like to draw custom bars with rounded corners to get lozenge shaped bars. 我想画圆角的自定义条形来制作菱形条。 There's also a requirement to overlay icons on or near some bars.
还需要在某些条形图上或附近叠加图标。
How can I override or access the rendering code for bars? 如何覆盖或访问条形图的渲染代码?
不幸的是,这个选项在highcharts中不可用,但您可以在我们的用户语音系统中请求您的建议http://highcharts.uservoice.com
Unless I am missing something, you don't need to over ride any rendering: 除非我遗漏了什么,否则你不需要过度渲染:
http://jsfiddle.net/jlbriggs/nHGRr/3/ http://jsfiddle.net/jlbriggs/nHGRr/3/
plotOptions:{
series: {
borderRadius:10
}
},
You can also do this. 你也可以这样做。
Include the following plugin. 包括以下插件。
plotOptions:{ series: { borderRadiusTopLeft: 5, borderRadiusTopRight: 5
plotOptions:{series:{borderRadiusTopLeft:5,borderRadiusTopRight:5
} }}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.