Ken, I should have also noticed that you were trying to set the type with
setColumnProperty.  That doesn't work since the properties are only for
additional user-defined properties, not things like 'type'.  But there is
no setColumnType() method either.  So to use the DataTable (without the
DataView) would have to instead add a header row to your arrayData that
specifies the types of the columns and pass that to arrayToDataTable().

Using the DataView may be cleaner for you after all.  You can read all the
documentation on the DataView class at
https://developers.google.com/chart/interactive/docs/reference#DataView_setColumns


On Sun, Dec 21, 2014 at 7:23 PM, Ken Burkhalter <[email protected]>
wrote:

> Well, I'm a glutton for punishment so I could not resist going back to the
> old code and trying it.
>
> Using this approach...
>
>  var data = google.visualization.arrayToDataTable(arrayData);
>
> // Set chart options
>  data.setColumnProperty (0, 'type', 'number');
>  data.setColumnProperty (1, 'type', 'number');
>                 yada, yada.
>
> to initialize the column definitions, there was NO success.  I still get
> the "same axis data type" error.
>
> BUT, all is well if I add the dataView visualization approach to the
> process (without the setColumnProperty method but the sourceColumn approach
> for the dataView).  I have not run across the "sourceColumn" method before
> and was not aware of it.  I didn't try it with the "data" set, just the
> "view" set.
>  [:-)}
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to