According to the documentation here:
http://code.google.com/apis/chart/interactive/docs/customizing_axes.html#Discrete_vs_Continuous
"For a continuous axis, set the data column type to one of: number,
date, datetime or timeofday."
However, with the following JS:
var data = new google.visualization.DataTable({cols:
[{id:"date",label:"Date",type:"date"},
{id:"level",label:"Level",type:"number"}],rows:[{c:[{v:new
Date(2011,9,16)},{v:1}]},{c:[{v:new Date(2012,0,16)},{v:2}]},{c:
[{v:new Date(2012,0,17)},{v:3}]}]});
var options = {'title': 'Your current workout progress',
'width':650,
'height':300,
'colors': ['#7cc316'],
'vAxis': {
'baseline': 0,
'minValue': 0,
'maxValue': 8,
'gridlines': {
'count': 9
}
},
lineWidth: 3,
pointSize: 5};
var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
My major (horizontal axis) is rendered with 3, very discrete values,
rather than having two values overlap.
What am I missing?
John
--
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.