[英]Google Visualization API customization
I'm making a website for school that involves a bunch of Google Visualizations. 我正在为学校制作一个涉及大量Google可视化的网站。 I can get them to work with the data I want, but I'm stuck customizing them. 我可以让它们使用所需的数据,但是我一直无法自定义它们。 I have a very specific design I must follow, and it's not really working out at the moment. 我有一个必须遵循的非常具体的设计,目前还不能真正解决。
The reason is that I don't know how to have two different styles on one element. 原因是我不知道如何在一个元素上使用两种不同的样式。 For example : 例如 :
legend: {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}},
legend: {position: 'bottom'},
This currently only positions the legend at the bottom. 当前,这仅将图例置于底部。 I'm trying to get these two in one line, but I don't know the proper syntax of the language (I've tried to find it online but to no avail. :( ) 我试图将这两种语言合而为一,但我不知道该语言的正确语法(我尝试过在线查找它,但无济于事。:()
I've shuffled it around a few times like so 我已经像这样洗了几次
legend: {position: 'bottom'}, {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}},
or 要么
legend: {position: 'bottom', {textStyle: {color: '#d1dbbd', fontName: 'Century Gothic', fontSize: 15}}},
Help ? 救命 ?
You are close with the format. 您与格式很接近。 You want one object with "position" and "textStyle" properties: 您需要一个具有“ position”和“ textStyle”属性的对象:
legend: {
position: 'bottom',
textStyle: {
color: '#d1dbbd',
fontName: 'Century Gothic',
fontSize: 15
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.