Specifically, you want to set the "titleTextStyle" option to change the
color and font of the title:
titleTextStyle: {
// color takes an HTML color string
color: <string>,
// fontName takes a CSS font-name string
fontName: <string>,
// fontSize takes an integer for the point size of the font
fontSize: <number>,
// bold takes a boolean value, true to make the font bold
bold: <boolean>,
// italic takes a boolean value, true to make the font italic
italic: <boolean>
}
On Tuesday, September 17, 2013 7:56:05 AM UTC-4, Al Caughey wrote:
>
> You set the styles in the option variable - e.g.,
>
> var options={width:500,height:400,title:'chart
> title',legend:{position:'top'},chartArea:{width:'80%',height:'70%'},isStacked:true,hAxis:{textStyle:{fontSize:7},,slantedText:true,titleTextStyle:{color:'green'}},vAxis:{titleTextStyle:{color:'green'}},series:{0:{color:'blue',visibleInLegend:true},1:{color:'#800000',visibleInLegend:true}}};
>
>
> ChartObj.draw(data,options);
>
> Hope this helps!
>
> AlOn Tuesday, 17 September 2013 06:42:56 UTC-4, Ikenna darlington Ogbajie
> wrote:
>>
>> Please how can i change the the charts title's color and font.
>>
>> I tried using the style property of the div where the chart is
>> contained but there was no change .
>>
>> I would really appreciate a directive on how to do that.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.