Hi,
I am trying to draw a line chart using *Google chart *in which data is
retrieved from mysql table.However i got a linegraph with the data from
mysql table.My problem is i cant configure hAxis and vAxis options.I need
to give title for both axis which indicates their type.Any body plz help me
to set the options for axis
The html portion is as follows:
<html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["LineChart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'persone1');
<?php echo $finalresult; ?>
var options = {
title : 'My graph',
vAxis:{title: "quantity",viewWindow: {min: 0}},
hAxis: {title: "Month"}
};
var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
--
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/groups/opt_out.