[英]In Highcharts, is it possible to add a border to the legend symbol?
In highcharts, to configure the legend symbol (the small square in front of each legend item), there are four properties can be configured: 在highcharts中,要配置图例符号(每个图例项前面的小方块),可以配置四个属性:
symbolHeight, symbolPadding, symbolRadius, symbolWidth
. symbolHeight, symbolPadding, symbolRadius, symbolWidth
。
Is it possible to add some extra properties to it? 是否可以向其中添加一些额外的属性? Like
borderWidth, borderColor...
? 像
borderWidth, borderColor...
吗?
symbolHeight
, symbolPadding
, symbolRadius
, and symbolWidth
are merely used to adjust the size and placement of the symbols in the legend. symbolHeight
, symbolPadding
, symbolRadius
和symbolWidth
仅用于调整图例中符号的大小和位置 。 To further change the appearance of these symbols, you should look at the options for series.marker.symbol
instead (see http://api.highcharts.com/highcharts#series<line>.marker.symbol ). 要进一步更改这些符号的外观,您应该查看
series.marker.symbol
的选项(请参阅http://api.highcharts.com/highcharts#series<line>.marker.symbol )。
There's a demo fiddle the Highcharts team created that shows you a bunch of options for marker symbols, each of which shows up in the legend as well: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-marker-symbol/ Highcharts团队创建了一个演示小提琴,向您显示了一系列标记符号的选项,每个选项也显示在图例中: http : //jsfiddle.net/gh/get/jquery/1.7.2/highslide-软件/ highcharts.com /树/主/样品/ highcharts / plotoptions /串联标记符号/
Hopefully, one of these options should be suitable for you. 希望这些选项之一适合您。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.