If you refresh the page, that normally means that everything starts from
scratch, so you must recreate everything on the page.  I don't know what
"refresh" means for ionic 2, but it appears from the error message that at
least the container elements have been regenerated.  To help you figure
this out, I'd suggest testing you use of iconic 2 with a very simple
example, one chart, nothing else on the page.

Hope this helps.

On Thu, May 4, 2017 at 9:22 AM, jose mendes <[email protected]>
wrote:

> Hi all,
> I'm working with the google charts on ionic 2 and by now I'm loving it.
>
> But I have a problem .. When I try to update the data in the graph it
> gives me an error about the container.
>
> When the application starts I create 3 graphs dynamically, and what I want
> to do is that when the user refreshes the page, the data of these graphs
> are updated, without creating new graphs.
>
>
> Error:
>
> ERROR Error: The container #3 is not defined.
> at g (polyfills.js:3)
> at gvjs_Z.gvjs_.getContainer (jsapi_compiled_default_module.js:240)
> at gvjs_Z.gvjs_.draw (jsapi_compiled_default_module.js:236)
> at google-chart-component.ts:63
> at t.invokeTask (polyfills.js:3)
> at Object.onInvokeTask (core.es5.js:4136)
> at t.invokeTask (polyfills.js:3)
> at n.runTask (polyfills.js:3)
> at invoke (polyfills.js:3)
> at e (polyfills.js:2)
>
>
> Anyone have any idea what it might be?
>
> Thanks!
>
>
> --
> 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 google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/b6126f32-eade-4050-96f9-
> eb284ab961fe%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/b6126f32-eade-4050-96f9-eb284ab961fe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMFiUfwN71ZP-5Q0BXrNcaHFK%2B1GoK6JYezuuOK%3DhG5ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to