Re: Float column types

2,077 views
Skip to first unread message

asgallant

unread,
Jan 15, 2013, 12:54:48 PM1/15/13
to google-visua...@googlegroups.com
Javascript doesn't distinguish between floating point and integer numbers (all are stored as float internally), so you don't need to do anything special; just put them in a "number" type column.

On Tuesday, January 15, 2013 12:36:18 PM UTC-5, Ivan Rubio wrote:
Hello to everybody,

As you can read in this section https://developers.google.com/chart/interactive/docs/reference#DataTable_addColumn, Google only provides next types: 'string' 'number' 'boolean' 'date' 'datetime' and 'timeofday' for columns. 

Can anybody tell me when will be possible to use float columns in DataTable objects? Otherwise, is possible to use floats as string values into candlestick charts?

Thank you in advice,
Iván Rubio Heras

Sergey Grabkovsky

unread,
Jan 15, 2013, 12:57:04 PM1/15/13
to google-visua...@googlegroups.com
Hi Ivan,

The type of "number" includes both floats and ints, since JavaScript doesn't discriminate.

-Sergey

/phone

On Jan 15, 2013, at 12:44 PM, Ivan Rubio <ivanrubi...@gmail.com> wrote:

Hello to everybody,

As you can read in this section https://developers.google.com/chart/interactive/docs/reference#DataTable_addColumn, Google only provides next types: 'string' 'number' 'boolean' 'date' 'datetime' and 'timeofday' for columns. 

Can anybody tell me when will be possible to use float columns in DataTable objects? Otherwise, is possible to use floats as string values into candlestick charts?

Thank you in advice,
Iván Rubio Heras

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/323YtohA5MYJ.
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.
Reply all
Reply to author
Forward
0 new messages