Was there ever a fix for this? I am having the same issue now. :(
On Monday, April 22, 2013 at 1:02:19 AM UTC-7, Karthik B wrote:
>
> Hi all I have been using google charts in my website(asp.net) .It works
> fine on all browsers except ie7 (tested by changing Browser mode).The chart
> gets compressed.below is my code
>
>
> <script type="text/javascript" language="javascript">
> var dataTopItemRgn = new google.visualization.DataTable();
>
> function setDataforGraphh()
> {
>
>
> // Create and populate the data table.
>
> var raw_dataRgn = <%= graphTableTopRegionItems %> ;
> var xAxisRgn = [<%=x_AxisTopRegionItems %>];
>
>
> dataTopItemRgn.addColumn('string', 'Date');
> for (var i = 0; i < raw_dataRgn.length; ++i) {
> dataTopItemRgn.addColumn('number', raw_dataRgn[i][0]);
> }
>
> dataTopItemRgn.addRows(xAxisRgn.length);
> for (var j = 0; j < xAxisRgn.length; ++j) {
> dataTopItemRgn.setValue(j, 0, xAxisRgn[j].toString());
> }
> for (var i = 0; i < raw_dataRgn.length; ++i) {
> for (var j = 1; j < raw_dataRgn[i].length; ++j) {
> dataTopItemRgn.setValue(j - 1, i + 1, raw_dataRgn[i][j]);
> }
> }
>
> }
>
> function drawVisualizationTopItemsRegion(Type) {
> // Create and draw the visualization.
> var TopRgnItemsdDiv = document.getElementById('TopItemRgn');
>
> var chart;
> //chart = new google.visualization.BarChart(TopItemsdDiv)
> ImagePieChart;
> chart = new google.visualization.ColumnChart(TopRgnItemsdDiv);
>
> var options = {
> backgroundColor: '#FAFAFA', is3D: true, colors:
> ['#1591EA'] ,
> vAxis: { minValue: 5, maxValue: 40}
>
> };
>
> chart.draw(dataTopItemRgn,options);
> new google.visualization.events.addListener(chart, 'select',
> selectionHandler);
>
> function selectionHandler(e) {
> selection = chart.getSelection();
> for (var i = 0; i < selection.length; i++) {
> var item = selection[i];
> alert(dataTopItemRgn.getValue(item.row, 1));
> }
> }
> }
> setDataforGraphh();
> google.setOnLoadCallback(drawVisualizationTopItemsRegion);
> </script>
>
>
>
>
> Also attached is the snip of rendering .Please help
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.