【发布时间】:2017-04-04 14:28:40
【问题描述】:
我想为谷歌组合图表上的注释提供不同的color 和auraColor。任何人都可以说它是否可能以及如何?
这是当前选项;
annotations: {
stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'white',
auraColor: 'grey',
fontSize: 11,
alwaysOutside: true,
}
},
我也试过了,但是没用;
annotations: {
0:{stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'white',
auraColor: 'grey',
fontSize: 11,
alwaysOutside: true
}},
1:{stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'black',
auraColor: 'red',
fontSize: 11,
alwaysOutside: true,
}},
2:{stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'blue',
auraColor: 'white',
fontSize: 11,
alwaysOutside: true,
}}
},
提前致谢
【问题讨论】:
标签: google-api annotations google-visualization