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 <ljtannah...@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-visualization-api+unsubscr...@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
> <https://groups.google.com/d/msgid/google-visualization-api/fee1be7b-8353-4da5-b9b1-75518434ef7e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   Cambridge 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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNSnFhiXiWm3FBtR1ai%2Bmnd6Wg0B-7rJr4WQjO2LE%2BbUQ%40mail.gmail.com.

Reply via email to