How to change fonSize in "Annotation chart"?

35 views
Skip to first unread message

Роман Береславский

unread,
May 24, 2017, 4:19:15 AM5/24/17
to Google Visualization API
Hi.
I'm trying to change fontSize of legend, annotation, title, axis. Both are not working. Please, HLP!

var options = {
 displayAnnotations
: true,
 displayZoomButtons
: true,
 annotationsWidth
: 15,
 thickness
: 2,
 
//
 titleTextStyle
: {
 
// color: <string>, // any HTML string color ('red', '#cc00cc')
 fontName
: 'Times New Roman', // i.e. 'Times New Roman'
 fontSize
: 12, // 12, 18 whatever you want (don't specify px)
 bold
: true, // true or false
 italic
: false // true of false
 
},
 hAxis
: {
 textStyle
: {
 fontSize
: 30 // or the number you want
 
}
 
},
 legend
: {position: 'top', textStyle: {color: 'blue', fontSize: 16}},
 legendtextStyle
: {
 fontName
: "Times New Roman",
 
},
 annotations
: {
 textStyle
: {
 fontName
: 'Times-Roman',
 fontSize
: 18,
 bold
: true,
 italic
: true,
 color
: '#871b47', // The color of the text.
 auraColor
: '#d799ae', // The color of the text outline.
 opacity
: 0.8 // The transparency of the text.
 
}
 
},
 fontSize
: "20",
 hAxistitleTextStyle
: {color: 'black', fontName: 'Arial', fontSize: "20"},
};

Роман Береславский

unread,
May 28, 2017, 12:05:52 PM5/28/17
to Google Visualization API
HELP!

среда, 24 мая 2017 г., 11:19:15 UTC+3 пользователь Роман Береславский написал:
Reply all
Reply to author
Forward
0 new messages