DateRangeFilter change trigger draw on chart outside the dashboard

52 views
Skip to first unread message

Giulio Mastrosanti

unread,
May 18, 2016, 8:03:03 AM5/18/16
to Google Visualization API
HI,

I have on one page a dashboard with an AreaChart and a DateRangeFilter to filter it,
but there's also another AreaChart independent from the dashboard.

I've noticed that, changing the DateRangeFilter, also the external AreaChart is redrawn.

is this a normal behaviour  and how can it be avoided?

thanks,

iulio

Daniel LaLiberte

unread,
May 18, 2016, 10:31:25 AM5/18/16
to Google Visualization API
If your external AreaChart is set up with no entanglements with the dashboard, it shouldn't be affected by anything that happens in the dashboard.  The dashboard constructs DataViews for use inside the dashboard, and so even if you share the data given to the dashboard with other uses outside the dashboard, the data won't be affected by anything that happens inside the dashboard, assuming we haven't introduced any bugs.  
Can you set up a demo where we can see what you are referring to?


--
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/c80f755c-2c79-460d-a672-ee5840dd5129%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Giulio Mastrosanti

unread,
May 18, 2016, 3:21:54 PM5/18/16
to Google Visualization API
Hi Daniel,

I was setting up a demo page for you,
but I have noticed that the second chart had an 

          animation: {"startup": true,"duration": 500},

in the options
since I have already got problems with animation with the the dashboard, I have removed the option and now it seems OK, so it seems that the second chart is not redrawn, but has simply its animation start again for some reason.
no problem for me, data is important and I can live without animations    :)

if it is of some use for you, I'll let for a while my little demo here:

but for me the problem is closed.

thanks for your help today and yesterday

Giulio

 
If your external AreaChart is set up with no entanglements with the dashboard, it shouldn't be affected by anything that happens in the dashboard.  The dashboard constructs DataViews for use inside the dashboard, and so even if you share the data given to the dashboard with other uses outside the dashboard, the data won't be affected by anything that happens inside the dashboard, assuming we haven't introduced any bugs.  
Can you set up a demo where we can see what you are referring to?

--

Daniel LaLiberte

unread,
May 18, 2016, 3:28:33 PM5/18/16
to Google Visualization API
The startup animation only applies the first time the chart is drawn.  I don't think animation in the dashboard should affect anything outside the dashboard, though if the animation fails due to an error, that could affect other things executing in the same thread. 

But I am glad you have got it working well enough for your needs.

--
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.

For more options, visit https://groups.google.com/d/optout.

Giulio Mastrosanti

unread,
May 18, 2016, 3:35:38 PM5/18/16
to Google Visualization API
it is not the dashboard to have an animation, is the chart outside of the dashboard that, if has an animation, gets affected from changes in the dashboard, as you can see here:



Il giorno mercoledì 18 maggio 2016 21:28:33 UTC+2, Daniel LaLiberte ha scritto:
The startup animation only applies the first time the chart is drawn.  I don't think animation in the dashboard should affect anything outside the dashboard, though if the animation fails due to an error, that could affect other things executing in the same thread. 

But I am glad you have got it working well enough for your needs.
On Wed, May 18, 2016 at 3:21 PM, Giulio Mastrosanti <giu...@bitbazar.com> wrote:
Hi Daniel,

I was setting up a demo page for you,
but I have noticed that the second chart had an 

          animation: {"startup": true,"duration": 500},

in the options
since I have already got problems with animation with the the dashboard, I have removed the option and now it seems OK, so it seems that the second chart is not redrawn, but has simply its animation start again for some reason.
no problem for me, data is important and I can live without animations    :)

if it is of some use for you, I'll let for a while my little demo here:

but for me the problem is closed.

thanks for your help today and yesterday

Giulio

 
If your external AreaChart is set up with no entanglements with the dashboard, it shouldn't be affected by anything that happens in the dashboard.  The dashboard constructs DataViews for use inside the dashboard, and so even if you share the data given to the dashboard with other uses outside the dashboard, the data won't be affected by anything that happens inside the dashboard, assuming we haven't introduced any bugs.  
Can you set up a demo where we can see what you are referring to?

--

--
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.



--

Daniel LaLiberte

unread,
May 18, 2016, 4:09:33 PM5/18/16
to Google Visualization API
Now I understand.  You have a 'ready' listener on your dashboard that calls caricaAscoltiM, so this will be called every time the dashboard is ready, which happens every time the dashboard gets updated, not just the very first time. So that's why the lower chart is redrawn. If you want this to happen only one time, then change addListener to addOneTimeListener.

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.



--

--
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.

For more options, visit https://groups.google.com/d/optout.



--

Giulio Mastrosanti

unread,
May 18, 2016, 4:33:42 PM5/18/16
to Google Visualization API
AaaaaaaaHhhhhh
got it!

great!

MANY THANKS you for your help and sorry for wasting your time,

Giulio
Reply all
Reply to author
Forward
0 new messages