You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GFlot General Discussion
Hello. I have selected the "Dark" theme under my .gwt.xml file, but this means I can't read the axis labels given the default settings. I was wondering how I could change the colour of the text, or what I woulld apply the setStyleName() function/css style to.
Thank you very much for any assistance.
Nicolas Morel
unread,
Nov 23, 2011, 8:14:32 AM11/23/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GFlot General Discussion
flot support it in axis option, it's the option "color". But gflot currently doesn't have it. You can extend the class AxisOptions and define a method setColor like this :
public AxisOptions setColor(String color) { put("color", color); return this; }
Or use the css class defined by flot. The class name for those label is "tickLabel".
Katerina Blinova
unread,
Jun 28, 2013, 6:47:24 PM6/28/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gf...@googlegroups.com
Hi,
I am using gflot 3.1.1 and am trying to set color of the axis labels by calling setColor() function on the xAxis and yAxis options. It does not work. The color stays as before. The setTickColor() works, however.
If I use css rule
.font-text
{
color: yellow !important;
}
that works. Is there something that overwrites setting of color on the axis properties?
Thanks,
Katerina
Katerina Blinova
unread,
Jun 28, 2013, 6:56:09 PM6/28/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gf...@googlegroups.com
I meant to say
flot-text, not font-text.
K
Nicolas Morel
unread,
Jun 30, 2013, 12:27:21 PM6/30/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gf...@googlegroups.com
You're right. The color option on AxisOptions seems to only change the line's color inside the grid but not the label.
You can also use it now with the version 3.1.1. Just create a JsonObject with the options you want and call the method put("font", yourFontObject) on the axis option.