Hi Rishu,

The Table visualization (google.visualization.Table) is a separate thing
from the DataTable (google.visualization.DataTable, or
google.visualization.arrayToDataTable). DataTables have getNumberOfColumns,
but Tables don't. You're trying to call it on the Table
(link_wfc_core_stats_table)
instead of your DataTable (link_wfc_core_stats_data).

On Tue, Aug 18, 2015 at 4:53 PM rishu oberoi <[email protected]> wrote:

> This is how I am creating my data table. Just including a snippet below.
>
>  link_wfc_core_stats_data =
> google.visualization.arrayToDataTable(dataArray);
>
> calculatePercentagesWithGlobalFactor(link_wfc_core_stats_data,PIPELINE_LINK_ALL);
> var link_wfc_core_stats_table = new
> google.visualization.Table(document.getElementById('link_wfc_core_stats_table'));
> link_wfc_core_stats_table.draw(link_wfc_core_stats_data, table_options);
>
> However, once the table is ready, when I try to use the table as -
> link_wfc_core_stats_table.getNumberOfColumns() - I get an error saying that
> the method getNumberOfColumns does not exist.
>
> Why is that?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/2f71ed8a-1020-4a77-a820-59206c03f9b5%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/2f71ed8a-1020-4a77-a820-59206c03f9b5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAEwwup6tuouvmd4DpzJ31dNqD5N9MJrGVSYBFs3YONKeFV-beQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to