ok, here is the raw script so you can test, as you will see the Y-Axis has
0 0.25 0.50 0.75 and 1 values, as i said, i dont want decimals because is a
daily visits chart:
<script type="text/javascript"> google.load('visualization', '1.0',
{'packages':['corechart']}); google.setOnLoadCallback(drawChart); function
drawChart() { var data = new google.visualization.DataTable(); var raw_data
= [['Visits',1],['Prints/Saves',0]];var years = ['2011-11-16'];
data.addColumn('string',
'Date'); for (var i = 0; i < raw_data.length; ++i) { data.addColumn('number',
raw_data[i][0]); } data.addRows(years.length); for (var j = 0; j <
years.length; ++j) { data.setValue(j, 0, years[j].toString()); } for (var i
= 0; i < raw_data.length; ++i) { for (var j = 1; j < raw_data[i].length;
++j) { data.setValue(j-1, i+1, raw_data[i][j]); } } var options =
{'width':660, 'height':300, 'backgroundColor': { fill: 'none' }, 'legend':
'right'}; var chart = new
google.visualization.ColumnChart(document.getElementById('chart_div_general'));
chart.draw(data, options); } </script>
--
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/-/qDduO_APJE4J.
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.