Google Timeline Bar Row Labels

424 views
Skip to first unread message

Michael Vargas

unread,
Aug 5, 2015, 1:46:58 PM8/5/15
to Google Visualization API


Hello, 

I am trying to use the google chart timeline. I would like to change the bar label text color to be, white, for example. 

I'm trying to configure the following option:

  • barLabelStyle: {color: 'rgb(255,255,255)', fontName: 'Tahoma', fontSize: 16},
I noticed that both the font name and the font size are taking so the option seems to be working, however, it does seem to ignore the color. I was looking through this documentation here:
https://developers.google.com/chart/interactive/docs/gallery/timeline and found this option which seems to be available.

Can someone please help out on this? 

Thanks!


Sergey

unread,
Aug 5, 2015, 2:03:33 PM8/5/15
to Google Visualization API
Hi Michael,

We're sorry for the confusion. You can't actually change the color of the bar labels because we automatically pick the most contrasting color to display.

We will fix the documentation soon.

Michael Vargas

unread,
Aug 5, 2015, 4:13:15 PM8/5/15
to Google Visualization API
Thanks Sergey! That clears everything up for me! 

I appreciate your quick response! 

Best.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages