HELP PLEASE - Fuzzy Messy Weird Area Chart redraw on slider movement

21 views
Skip to first unread message

Dominic Boston

unread,
Apr 2, 2020, 6:37:30 PM4/2/20
to Google Visualization API
Hi All,

I normally don't post on forums but I'm really stuck.
Please take a look at this website and move the slider, the problem will become very apparent as you move the slider around - 

It redraws a perfect chart, but make's a right mess in the process.

Image attached if you're too scared to click the link!

Many Thanks for your help.
Dom Boston

Screenshot 2020-04-02 at 23.36.19.png

Dominic Boston

unread,
Apr 2, 2020, 6:52:08 PM4/2/20
to Google Visualization API
when loading on v41, the graph disappear every time you touch the slider,
v42 - v46 you get the above problem.

Thanks
Dom

Daniel LaLiberte

unread,
Apr 2, 2020, 8:10:57 PM4/2/20
to Google Visualization API
Open the debugger and add a breakpoint to your chart2.draw() call in reDrawChart2.  Then click on a slider.  You will see that the chart is redrawn 7 or 8 times each time you make a slider change.  Each time, it starts the startup animation, which I guess is proceeding simultaneously for all redraws.

There is also a failure the first time you try to call reDrawChart2.  So you should check whether your overall flow is correct.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/f0858b74-a3e8-4c77-a4f8-16fc96a3c44e%40googlegroups.com.


--

Dominic Boston

unread,
Apr 2, 2020, 8:12:48 PM4/2/20
to google-visua...@googlegroups.com
Thanks Daniel,
I realise I’m calling the start up animation on every redraw. Probably unwise!
And I’ll check flow.

Thanks
Dom!

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/eQ9uYAGWHIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJM3Kw%2BCH1PX0xf1x6J4k711faFSy02F%2BZkAYS1_O8nqCA%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages