For a code like what is given below there is an offset between where
the horizontal axis labelling begins and its actual column exists.
It is a bug I believe ... any inputs where it should be reported
<html>
<head>
<script type="text/javascript" src="https://www.google.com/
jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var coldata = new google.visualization.DataTable();
coldata.addColumn('string', 'kW (Mean Values)');
coldata.addColumn('number', 'Sales');
coldata.addRows([
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var coloptions = {
width: 400, height: 240,
title: 'Solar Generation',
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}},
hAxis: {title: 'Time', titleTextStyle: {color: 'red'},
textPosition: 'out',slantedText: 'True' , slantedTextAngle: 90}
};
var colchart = new
google.visualization.ColumnChart(document.getElementById('Col_Chart'));
colchart.draw(coldata, coloptions);
}
</script>
</head>
<body>
<h1>PAES</h1>
<div id="Area_Chart"></div>
<div id="Col_Chart"></div>
</body>
</html>
--
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.