Google api 如何在注释上设置不同的颜色?
我想给谷歌组合图上的注释赋予不同的Google api 如何在注释上设置不同的颜色?,google-api,annotations,google-visualization,Google Api,Annotations,Google Visualization,我想给谷歌组合图上的注释赋予不同的color和auraColor。任何人都可以说它是否可行,以及如何实现 这是目前的选择 annotations: { stemColor: 'none', textStyle: { fontName: 'Arial', color: 'white', auraColor: 'grey',
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,
}}
},
提前感谢尝试使用
系列
选项
series: {
0:{
annotations: {
stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'white',
auraColor: 'grey',
fontSize: 11,
alwaysOutside: true
}
}
},
1:{
annotations: {
stemColor: 'none',
textStyle: {
fontName: 'Arial',
color: 'black',
auraColor: 'red',
fontSize: 11,
alwaysOutside: true,
}
}
},
...
是的,这就是我要找的。谢谢:)