The chart displays fine, only the getstate() throws the exception. Thanks
for helping me out. Do you see the same exception when calling that method?

On Mon, Oct 23, 2017 at 10:15 AM 'Daniel LaLiberte' via Google
Visualization API <[email protected]> wrote:

> The motionchart is working fine in the documentation page, at least for
> me.  Going to JSFiddle with the example, it does not work at first for me,
> using Chrome, because apparently JSFiddle now adds the following to the
> 'results' iframe:  sandbox="allow-forms allow-scripts allow-same-origin
> allow-modals allow-popups" which results in this error:
>
> Failed to load '
> https://www.gstatic.com/charts/motionchart/1/en/tlz-gviz.swf' as a
> plugin, because the frame into which the plugin is loading is sandboxed.
> If I edit the html in the debugger and remove that sandbox attribute, it
> works fine.
>
> But this is all an interesting diversion because you are not seeing that
> error.
>
> You say you get an exception when you try to execute chart.getState() in
> the console.  But at what point are you stopped in the debugger?
>
> The only difference I see in your code is that you declared the chart
> variable globally.  The chart still displays for me, so the question is
> where are you stopped in the debugger?
>
>
> On Mon, Oct 23, 2017 at 8:34 AM, Steven Porter <[email protected]>
> wrote:
>
>> That is not possible at the moment, it is hosted only internally. The
>> actual website should not matter if the simple documentation example is
>> producing the same error. As far as I can tell it is a bug in the actual
>> API. Did you look at the file I had attached?
>>
>> On Sat, Oct 21, 2017 at 1:31 PM 'Daniel LaLiberte' via Google
>> Visualization API <[email protected]> wrote:
>>
>>> If you can point to your actual web page with the motionchart, we might
>>> be able to figure out what is happening.  Just knowing the error is not
>>> enough in this case, since this kind of error suggests here is a bug in the
>>> library.
>>>
>>> On Sat, Oct 21, 2017 at 9:05 AM, Steven Porter <[email protected]
>>> > wrote:
>>>
>>>> I had a data dashboard from 5 years or so ago that stopped functioning.
>>>> I have no idea how long ago this happened as it is seldom used.
>>>>
>>>> Using a slight modification from the sample code in the motionchart
>>>> documentation (
>>>> https://developers.google.com/chart/interactive/docs/gallery/motionchart).
>>>> I have this issue when trying chart.getState() in the console. The html
>>>> file I used is attached.
>>>>
>>>>
>>>> Uncaught Error: Error: An invalid exception was thrown.
>>>>     at gvjs_0Y.gvjs_.getState (jsapi_compiled_motionchart_module.js:3)
>>>>     at <anonymous>:1:7
>>>>
>>>>
>>>> I have been unable to find any hints online, if anyone can shed insight
>>>> I would appreciate it. 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
>>>> [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/cf25235b-e64e-47b4-ba0a-7aaf15f1cbd1%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/google-visualization-api/cf25235b-e64e-47b4-ba0a-7aaf15f1cbd1%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 a topic in the
>>> Google Groups "Google Visualization API" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-visualization-api/PRi8i2Vc39k/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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/CAOtcSJOkARye%2BmMzE3zcbFL%2BbFyZkfJx8B%2BBp0wtvDcM6AbV9A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOkARye%2BmMzE3zcbFL%2BbFyZkfJx8B%2BBp0wtvDcM6AbV9A%40mail.gmail.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
>> 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/CAOXqiJLAu1chpo0MsGrRKFYWjfduNXCaoQPOXz2Tsvw5E19ZNg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-visualization-api/CAOXqiJLAu1chpo0MsGrRKFYWjfduNXCaoQPOXz2Tsvw5E19ZNg%40mail.gmail.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 a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/PRi8i2Vc39k/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAOtcSJO84jeG9Sosv_F74NV8ijkGmcSPac%2BLdy-b%3D2taAS32Sg%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO84jeG9Sosv_F74NV8ijkGmcSPac%2BLdy-b%3D2taAS32Sg%40mail.gmail.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 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/CAOXqiJK6A4%2B1XRGhyj%2B-%2BT%3DnFw1p2wuDbzVmnO%3DcBNpJ%3D3r51g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to