在Google图表中隐藏图例 [英] Hiding the legend in Google Chart

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

问题描述

我正在使用Google图表API。有没有一种方法可以隐藏散点图的图例?

解决方案

您可以使用'none'作为位置:

legend:{position:'none'}


I am using the Google charts API. Is there a way to hide the legend for a scatter plot?

解决方案

You can disable the legend by using 'none' as the position:

legend: {position: 'none'}

这篇关于在Google图表中隐藏图例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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