Chart with logarithmic scale

172 views
Skip to first unread message

JoyaleXandre

unread,
Sep 5, 2012, 9:36:34 AM9/5/12
to google-visua...@googlegroups.com
Hi,

I would like to change the axis of my chart to logarithmic scale. How do I do this in GWT? I tried with this code :

   Options options = Options.create();
    options.setWidth(800);
    options.setHeight(500);
    options.set("axes", "logScale");

Thanks

asgallant

unread,
Sep 5, 2012, 10:28:32 AM9/5/12
to google-visua...@googlegroups.com
I'm not familiar with the GWT implementation, but I would guess that you would use:

options.set("vAxis.logScale", true); 

JoyaleXandre

unread,
Sep 5, 2012, 11:24:33 AM9/5/12
to google-visua...@googlegroups.com
Thanks for your answer, but it wasn't working.

I found how to do it.

AxisOptions axisOp = AxisOptions.create();
    axisOp.setIsLogScale(true);
    options.setHAxisOptions(axisOp);
Reply all
Reply to author
Forward
0 new messages