谷歌图表传奇操纵 [英] Google charts legend manipulation

查看:104
本文介绍了谷歌图表传奇操纵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用google区域图表: http://code.google.com/apis/图表/交互式/ docs / gallery / areachart.html



有谁知道我可以如何操控这些传奇?

几乎我想要其中的一个:




  • 能够在每个地方设置每个图例元素。
  • 如果图例的大小超过图例区域的宽度,则将显示在一行中的图例设置为多行。 (首选)



我会避免hacks操纵iframe中的svg。

解决方案

没有办法像我们希望的那样操纵传说。
在赏金的问题中:
您可以在两个图表中使用

  legend:'none'

以确保所有元素具有相同的颜色。

 颜色:['red','#004411'] 

除此之外,我们不能很不幸地操纵它们:(


Using google area chart: http://code.google.com/apis/chart/interactive/docs/gallery/areachart.html

Does anyone know how I can freelly manipulate the legends?

Pretty much I want one of two:

  • Be able to freelly set each legend element somewhere.
  • Set the legend that is displayed in one line to have multiple lines if the size of the legend exceeds the width of the legend area. (Prefered)

I would avoid hacks to manipulate the svg within the iframe btw.

解决方案

There isn't a way to manipulate the legends as we wish. In the question of the bounty: You can use

in two of the charts

legend : 'none'

and also use colours to guarantee that all elements have the same colour.

colors:['red','#004411']

Other than that we can't manipulate them much more unfortunately :(

这篇关于谷歌图表传奇操纵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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