Change Color

26 views
Skip to first unread message

Игорь Крысенко

unread,
May 10, 2013, 10:10:31 AM5/10/13
to google-visua...@googlegroups.com
Hello Is it possible to change the color of the column from blue to say orange when the mouse? Is it possible to print the date on the H-axis to the top from the bottom was written by a number of day?

asgallant

unread,
May 10, 2013, 10:57:43 AM5/10/13
to google-visua...@googlegroups.com
Is this the kind of effect you are looking for: http://jsfiddle.net/asgallant/aeYSH/?

If I understood your second question correctly, you should be able to control the direction of the dates by setting the hAxis.direction option (default value is 1, use -1 to reverse the direction).

Игорь Крысенко

unread,
May 10, 2013, 11:07:39 AM5/10/13
to google-visua...@googlegroups.com
On the first question is what you need, thank you. And on the second issue here is a screen as I have to do.
http://i.shotnes.com/a/10/xfltxs3m.uiy_518d0cb782bd4.png


2013/5/10 asgallant <drew_g...@abtassoc.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/I5pv5phbMv8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

asgallant

unread,
May 10, 2013, 11:15:03 AM5/10/13
to google-visua...@googlegroups.com
You can specify the format of your dates with the hAxis.format option (which takes an ISO date pattern), which should be able to get you the text output that you want.  You can't force the labels to split into two rows like your example, however.


On Friday, May 10, 2013 11:07:39 AM UTC-4, Игорь Крысенко wrote:
On the first question is what you need, thank you. And on the second issue here is a screen as I have to do.
http://i.shotnes.com/a/10/xfltxs3m.uiy_518d0cb782bd4.png


2013/5/10 asgallant <drew_g...@abtassoc.com>
Is this the kind of effect you are looking for: http://jsfiddle.net/asgallant/aeYSH/?

If I understood your second question correctly, you should be able to control the direction of the dates by setting the hAxis.direction option (default value is 1, use -1 to reverse the direction).


On Friday, May 10, 2013 10:10:31 AM UTC-4, Игорь Крысенко wrote:
Hello Is it possible to change the color of the column from blue to say orange when the mouse? Is it possible to print the date on the H-axis to the top from the bottom was written by a number of day?

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/I5pv5phbMv8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

Игорь Крысенко

unread,
May 10, 2013, 11:18:02 AM5/10/13
to google-visua...@googlegroups.com
Thanks, I thought so. At the right format I have given. Just sometimes when when it is not placed in a row, it divides itself into two and the rest of the text below says, I'm curious to know: is it possible to do it by force.


2013/5/10 asgallant <drew_g...@abtassoc.com>
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

Игорь Крысенко

unread,
May 11, 2013, 4:55:08 AM5/11/13
to google-visua...@googlegroups.com
And how can include tooltips with html tags. I have included that but it does not work http://jsfiddle.net/aPwgg/1/

asgallant

unread,
May 11, 2013, 11:49:38 AM5/11/13
to google-visua...@googlegroups.com
I the hack to change the color of the column when you mouseover breaks the tooltips.  You can implement your own custom tooltip solution (Google for prepackaged options, there are lots of them; alternatively, you can custom code your tooltips).  I made a few small adjustments and put some comments in to help you with the tooltips: http://jsfiddle.net/asgallant/aPwgg/2/
Reply all
Reply to author
Forward
0 new messages