It doesn't appear to be difficult to fix, and it is a rather serious
problem when it occurs, akin to an infinite loop.  So I would expect to
address it relatively soon.

On Thu, Oct 27, 2016 at 11:41 AM, Chad Hanna <[email protected]> wrote:

> Hi Daniel,
>
> Thanks for confirming this. I thought I might need to rework things to use
> lower level classes.  It would be wonderful if this could be fixed in
> ChartWrapper since I plan to make a lot of charts and ChartWrapper is
> otherwise entirely adequate and makes for simpler code.  Is there any
> chance it could be fixed in the coming weeks, months, years?
>
> Thanks again,
>
> Chad
>
> On Thu, Oct 27, 2016 at 11:32 AM, 'Daniel LaLiberte' via Google
> Visualization API <[email protected]> wrote:
>
>> Hi Chad,
>>
>> Thanks for your report.
>>
>> Sounds like you have found a bug, and from the looks of the code, I
>> suspect this has been around for a long time.   clear() should certainly
>> reset everything, but even just changing the refresh interval and drawing
>> again ought to be enough.  There should at least be a way to stop the
>> refreshing, which would then provide another way to work around the
>> otherwise uninterruptible extra refreshing.
>>
>> The refreshing is actually being done by the internal refresh interval on
>> the Query, and for Query by itself, it appears that changing the refresh
>> interval should work properly.  So if you want to work around this, try
>> setting up your own query and then pass each DataTable to your
>> ChartWrapper.
>>
>> On Thu, Oct 27, 2016 at 6:58 AM, channa <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I have several ChartWrapper instances each connected to a data source
>>> with a nonzero refresh interval.  I draw the charts once on load and
>>> everything works fine.  I want to allow the user input to modify the
>>> refresh interval dynamically.  From the chartwrapper documentation I got
>>> the idea that it should be possible by calling
>>>
>>> my_chart_wrapper.setRefreshInterval(new_interval);
>>> my_chart_wrapper.draw()
>>>
>>> However, when I do that, the original query seems to continue and I end
>>> up with a new query with its own refresh interval set.  This quickly
>>> becomes a problem. I realized that this happens generically when .draw() is
>>> called regardless of whether or not a new refresh interval is set.  Is
>>> there a way to redraw the chart after updating the refresh interval and
>>> aborting the original query? It doesn't seem obvious from the exposed API.
>>> I noticed that there is a .clear() method, which is undocumented, but that
>>> doesn't do the trick either.
>>>
>>> thanks,
>>>
>>> Chad
>>>
>>> --
>>> 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@googl
>>> egroups.com.
>>> Visit this group at https://groups.google.com/grou
>>> p/google-visualization-api.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-visualization-api/89974a7a-02d0-419e-b588-1066f81
>>> 52ada%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/89974a7a-02d0-419e-b588-1066f8152ada%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/to
>> pic/google-visualization-api/wyYZue6b1iE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to google-visualization-api@googl
>> egroups.com.
>> Visit this group at https://groups.google.com/grou
>> p/google-visualization-api.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/google-visualization-api/CAOtcSJN4W7j1KydtddTW_1GYbZ_
>> sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%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 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/CA%2B0a1yc7%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1
> bvv2GbpHUeG1g%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-visualization-api/CA%2B0a1yc7%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%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 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/CAOtcSJP4TqvwBu2VtNm%2BTQbgiHWQoLpdw-P-wCwqvZkZRQp7uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to