my_chart_wrapper.setRefreshInterval(new_interval);
my_chart_wrapper.draw()--
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+unsub...@googlegroups.com.
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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 <chad.r...@gmail.com> 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 callingmy_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 google-visualization-api+unsubscr...@googlegroups.com.
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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
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
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
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 <chad.r...@gmail.com> 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 <google-visua...@googlegroups.com> 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 <chad.r...@gmail.com> 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 callingmy_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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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 post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
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/93d28c96-ed57-4fc9-8c77-b8bc5c61ee49%40googlegroups.com.
function ChartWrapper(obj) {
this.chartType = obj.chartType; this.dataSourceUrl = obj.dataSourceUrl; this.query = obj.query; this.query_object = null; this.refreshInterval = obj.refreshInterval; this.options = obj.options; this.containerId = obj.containerId; this.container = document.getElementById(this.containerId);
command = "this.chart = new google.visualization." + this.chartType + "(this.container)"; eval(command);
this.clear = function() { this.query_object && this.query_object.abort(); this.chart.clearChart(); }
this.draw = function() { this.query_object && this.query_object.abort(); this.query_object = new google.visualization.Query(this.dataSourceUrl + "&tq=" + this.query); this.query_object.setRefreshInterval(this.refreshInterval); var queryWrapper = new QueryWrapper(this.query_object, this.chart, this.options, this.container); queryWrapper.sendAndDraw(); }
this.setRefreshInterval = function (refreshInterval) { this.refreshInterval = refreshInterval; this.query_object.setRefreshInterval(this.refreshInterval); }}
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/93d28c96-ed57-4fc9-8c77-b8bc5c61ee49%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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 post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
--
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 post to this group, send email to google-visua...@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/93d28c96-ed57-4fc9-8c77-b8bc5c61ee49%40googlegroups.com.
--
--
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+unsub...@googlegroups.com.
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/b80cd072-ec5f-4a70-8d60-14dee6ccabcc%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/93d28c96-ed57-4fc9-8c77-b8bc5c61ee49%40googlegroups.com.
--
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@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/b80cd072-ec5f-4a70-8d60-14dee6ccabcc%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/89974a7a-02d0-419e-b588-1066f8152ada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/wyYZue6b1iE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/CAOtcSJN4W7j1KydtddTW_1GYbZ_sPk-0WH04sERh6zWySqmHPA%40mail.gmail.com.
--
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 post to this group, send email to google-visua...@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%3DiUo0LRpL2tnWS8smWy1hfT9gEWX1bvv2GbpHUeG1g%40mail.gmail.com.
--
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 post to this group, send email to google-visua...@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/93d28c96-ed57-4fc9-8c77-b8bc5c61ee49%40googlegroups.com.
--
--
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 post to this group, send email to google-visua...@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/b80cd072-ec5f-4a70-8d60-14dee6ccabcc%40googlegroups.com.
--
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 post to this group, send email to google-visua...@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/8082da4f-e9f7-478c-8431-405da231b849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.