You can get the values out of your datatable using the getValue() method.
Even better, you can get all the distinct values in your first column with
the getDistinctValues() method.

getDistinctValues(columnIndex)Array of objects

Returns the unique values in a certain column, in ascending order.

   - columnIndex should be a number greater than or equal to zero, and less
   than the number of columns as returned by the getNumberOfColumns()
    method.

The type of the returned objects is the same as that returned by the
getValue
<https://developers.google.com/chart/interactive/docs/reference#DataTable_getValue>
 method.

On Thu, Apr 30, 2015 at 12:19 AM, mariummalik22 <[email protected]>
wrote:

> But my data is coming from SQL database, so I can't define them myself. Is
> any such thing possible that they are defined by getting values from
> database?
>
>
>   --
> 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