更改图例符号的大小 [英] Change size of legend symbol

查看:172
本文介绍了更改图例符号的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改图例中符号的大小?现在他们看起来像这样:





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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆