Google Charts Error messages

44 views
Skip to first unread message

Liam Tannahill

unread,
Dec 1, 2019, 9:18:38 AM12/1/19
to Google Visualization API
I am using google charts to display some data from an API on a website I am building. I am relatively new to the technology and can't find a way to remove the error message that shows when the website is initially loaded. Data table is not defined    I know why the error is displaying, but at this stage, the function that fetches the data may not have run, thus the table not being defined at this stage is fine.

Daniel LaLiberte

unread,
Dec 1, 2019, 7:04:28 PM12/1/19
to Google Visualization API
Hi Liam,

Can you arrange to not draw the chart until the data is ready?  Maybe just check whether your datatable is defined.

Alternatively, if you have to wait for your data to be fetched, that should be the only path to attempting to draw the chart once you have the data.

On Sun, Dec 1, 2019 at 9:18 AM Liam Tannahill <ljtan...@gmail.com> wrote:
I am using google charts to display some data from an API on a website I am building. I am relatively new to the technology and can't find a way to remove the error message that shows when the website is initially loaded. Data table is not defined    I know why the error is displaying, but at this stage, the function that fetches the data may not have run, thus the table not being defined at this stage is fine.

--
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 google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/fee1be7b-8353-4da5-b9b1-75518434ef7e%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages