Great news I've been hard at work on improving this code.

I've made some nice progress to make it all user friendly.

A minimized chart is automatically enlarged when a toImg function is run

First of all the function toImg will run the exp() function and send a 
blank data/or its own id.
exp() will determine the element that made the request and expand the image 
when minimized

    if (obj != document.getElementById('b2')){
    
    
    document.getElementById('img_div').style.width="400px";
    document.getElementById('img_div').style.height=200px";
    document.getElementById('b2').innerHTML = 'hide popup';
    document.getElementById('b2').oldText = null;
    }
else
{
//regular code
}



//The image returned is set width and height (display) it does not clutter 
the screen. I found the best way of doing it is to do it when the image has 
been successfully created, rather than try and mess around with the image  
data being sent out or returned.

You need to 
1) give the image an ID.
2) Lookup that ID.
3) Apply the appropriate style height and width to the displayed image.

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

Reply via email to