I am displaying a line chart with Fahrenheit temperature on left-side
vertical axis, date-time on horizontal axis.
Looking for help to display a right-side Celsius temperature vertical
axis.
When I use firefox v10 all data displays on hAxis and vAxis.
When I use IE 8 and IE 9 hAxis as well as vAxis data is not displayed.

Is anyone having similar problem ? Need help !!!!

following url will show line char problem
http://www.marcillo.com/chartdata.do?method=showChartHome

Following is the script part of the page:

<script type="text/javascript" src="https://www.google.com/jsapi";></
script>

<script type="text/javascript">

google.load("visualization", "1.1", {packages:["corechart"]});
var currentTime = new Date();
var aUrlValue = "<%=request.getContextPath()%>/chartdata.do?
method=getTemperature";
google.setOnLoadCallback( initChart );

function initChart(){
  google.setOnLoadCallback( initChart );
  var aszCurrentDatTime = new Date();;
  document.getElementById('area1').innerHTML = aszCurrentDatTime;
  document.getElementById("chart_div").style.display = 'none';
  var aszNewURLData = aUrlValue+'&d='+escape(currentTime)+'&debug=Y';
  var opts = {sendMethod: 'xhr'};
  var query = new google.visualization.Query( aszNewURLData, opts);
  query.setQuery('select C, sum(B) group by C');
  query.send( handleQueryResponse );
}

function handleQueryResponse( response ) {
        if (response.isError()) {
                alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
                return;
        }
        var data = response.getDataTable();
        var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
        var CharOptions = {'title':'Temperature Chart',width:500,height:
340,is3D:true,vAxis:{title:'Fahrenheit'},hAxis:{title:'Date Time'}};
        chart.draw( data, CharOptions );
    document.getElementById('chart_div').style.display = 'block';
}

</script>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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