Scientific Notation for axis label

1,843 views
Skip to first unread message

Clams

unread,
Jul 29, 2010, 4:50:30 AM7/29/10
to Google Visualization API
I am using a logScale on a scatter shot with value inferior to 1 :
it's working fine except that the label on the axis are all 0. Is
there any-way to display the axis label using scientific notation (ie
0.001 displayed as 1E-003) ? or at least a displaying something like
0.001 instead of 0 ?

Badtnik

unread,
Jul 29, 2010, 7:54:02 AM7/29/10
to google-visua...@googlegroups.com
Hey

The formatting of numbers along the axis (including log scaled axes) is a feature we are working on but still do not know when exactly will be ready, once its out log scale will indeed be more use full for small numbers than it is today.

  Badtink



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


asgallant

unread,
Jan 9, 2013, 10:22:55 PM1/9/13
to google-visua...@googlegroups.com
Yes, formatting in scientific notation is supported.  To format the y-axis, set the vAxis.format option to an ICU pattern that complies with scientific notation (such as '0.##E+0').  To format your data values, use a NumberFormatter, with the same type of pattern.  All options available for a chart are documented on the chart's page (eg, LineCharts).

On Wednesday, January 9, 2013 9:47:04 PM UTC-5, chen.c...@gmail.com wrote:
Hi I traced this kind of issue in google search and I found solution of log scale, but the value show in the axis still kept 0.000015 instead of 1.5E+5 in the axis tick.
Does API support scientific notation now, and where I can find a reference to set the axis property?

Thanks

Badtnik於 2010年7月29日星期四UTC+8下午7時54分02秒寫道:
Hey

The formatting of numbers along the axis (including log scaled axes) is a feature we are working on but still do not know when exactly will be ready, once its out log scale will indeed be more use full for small numbers than it is today.

  Badtink


On Thu, Jul 29, 2010 at 11:50 AM, Clams <christ...@gmail.com> wrote:
I am using a logScale on a scatter shot with value inferior to 1 :
it's working fine except that the label on the axis are all 0. Is
there any-way to display the axis label using scientific notation (ie
0.001 displayed as 1E-003) ? or at least a displaying something like
0.001 instead of 0 ?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

chen.c...@gmail.com

unread,
Jan 10, 2013, 3:05:14 AM1/10/13
to google-visua...@googlegroups.com
Thank you, the solution is good.

asgallant於 2013年1月10日星期四UTC+8上午11時22分55秒寫道:
Reply all
Reply to author
Forward
0 new messages