更改图例符号的大小 [英] Change size of legend symbol
问题描述
如何更改图例中符号的大小?现在他们看起来像这样:
I希望它们与标题的尺寸大致相同。看过文档后,我想改变symbolHeight,symbolRadius和symbolWidth会做的,但事实并非如此。事实上,就我所知,这些参数根本不会改变。 如果您正在使用线条系列,则需要将其图例符号更改为列系列图例符号。 然后您可以使用 symbolHeight
, symbolWidth
和 symbolRadius
属性。
API参考:
http://api.highcharts.com/highcharts/legend.symbolHeight
http://api.highcharts.com/highcharts/legend.symbolWidth
http://api.highcharts.com/highcharts/legend.symbolRadius
示例:
http://jsfiddle.net/x2vk088m/
How do I change the size of the symbols in the legend? Right now they look like this:
I would like them to be squares approximately the same size as the titles. After looking at the docs, I thought changing symbolHeight, symbolRadius and symbolWidth would do the trick, but it doesn't. In fact these parameters don't change anything at all, as far as I can see.
If you are using line series, you need change its legend symbol to column series legend symbol. Then you can use symbolHeight
, symbolWidth
and symbolRadius
properties.
API Reference:
http://api.highcharts.com/highcharts/legend.symbolHeight
http://api.highcharts.com/highcharts/legend.symbolWidth
http://api.highcharts.com/highcharts/legend.symbolRadius
Example:
http://jsfiddle.net/x2vk088m/
这篇关于更改图例符号的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!