Graph loading with old height width when it is Maximised !!!!

30 views
Skip to first unread message

shub

unread,
Apr 5, 2012, 3:01:38 AM4/5/12
to google-visua...@googlegroups.com
Hi,

     I am loading graphs in divs with some height and width. I have a maximise option to view the graph in Maximise pop up. But my graph is seen in full height and width for the first time only. If I again open it in Maximise pop - up , the height reduces to that of my small div ??
    
     I have not mentioned any height and width which drawing the chart, so y is it not taking the height and width of the maximise pop up container ?

    How to resolve this issue.... ?


Thanks in advance.

MC Get Vizzy

unread,
Apr 5, 2012, 4:07:45 AM4/5/12
to google-visua...@googlegroups.com
I don't know.  How are you doing the maximize pop up?  Can you send a code example?


--
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/-/hOfT5U4qHF4J.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

shub

unread,
Apr 5, 2012, 9:19:46 AM4/5/12
to google-visua...@googlegroups.com
Hey Mc Get Vizzy,

Heres my sample code ,I have used for the functionality of maximising the chart.


<a href="javascript:maximiseChart('myPage.php');">Maximise</a>
// where in myPage.php the chart is drawn.

<script type="text/javascript">
function maximiseChart(iframeSrc)
{
   // I m loading the chart into an iframe which is inside a div.   
   document.getElementById('maxContentDiv').style.display = "block";    
   document.getElementById('maxDivIframe').src = iframeSrc;
}
</script>


<div id='maxContentDiv' style="height:550px; width:700px">
    <iframe src='' id='maxDivIframe' height="95%" width="100%"></iframe>
</div>

Now when the chart open up in this iframe it doesnt take the full height and width of the iframe.

What may be the issue ?




On Thursday, 5 April 2012 13:37:45 UTC+5:30, MC Get Vizzy wrote:
I don't know.  How are you doing the maximize pop up?  Can you send a code example?

On Thu, Apr 5, 2012 at 10:01 AM, shub wrote:
Hi,

     I am loading graphs in divs with some height and width. I have a maximise option to view the graph in Maximise pop up. But my graph is seen in full height and width for the first time only. If I again open it in Maximise pop - up , the height reduces to that of my small div ??
    
     I have not mentioned any height and width which drawing the chart, so y is it not taking the height and width of the maximise pop up container ?

    How to resolve this issue.... ?


Thanks in advance.

--
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/-/hOfT5U4qHF4J.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

asgallant

unread,
Apr 5, 2012, 1:02:20 PM4/5/12
to google-visua...@googlegroups.com
What does myPage.php render for HTML/javascript?

shub

unread,
Apr 10, 2012, 3:24:46 AM4/10/12
to google-visua...@googlegroups.com

   On myPage.php page the chart is drawn.  I just display this page into the iframe....?

Jinji

unread,
Apr 10, 2012, 8:01:55 AM4/10/12
to google-visua...@googlegroups.com
Please understand that the Google Visualization API is a Javascript API and any looking-into we can do is for JS code. Please provide a (simple as possible) HTML/JS example page (no PHP please) that reproduces the problem.

To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/IFWuUrqGebUJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages