Hi currently i am adding safeguards to stop people mucking around with
charts while the animation is taking place such as generating images of
charts part way through the animation process, click the next button too
quickly, etc. So far i managed to get buttons to be disabled by using an
additional div to check when a chart is freshly created apparently there is
no animation-finish trigger when you enter the dynamic mode from a fixed
chart.
*What i need now is to be to display those error message along the lines of
"Loading Data" similar to the error messages with the red square when you
put in bad data.. and remove it once the animation has finished.* Or
perhaps i could do something more drastic?
function drawChart() {
if(document.getElementById('patient0').innerHTML == 'First'){
document.getElementById('patient0').innerHTML = 'NA'
}
else{
document.getElementById('creator').disabled = true;
document.getElementById('saver').disabled = true;
button.disabled = true;}
google.visualization.events.addListener(chart, 'animationfinish',
function() {
document.getElementById('creator').disabled = false;
document.getElementById('saver').disabled = false;
button.disabled = false;
});
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/vtv9TnOJHKkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.