If I understand you correctly, you want your axis to look something like
this:
---|-----------|-----------|-----------|-----------|-----------|-----------|
2000 2000 2001 2001 2001 2003 2003
If so, set your axis column up to take strings instead of numbers:
// data is the data table object
data.addColumn("string", "Year");
data.addColumn("number", "value");
data.addRow(["2000", 34]); // <--- note the quotes around 2000
data.addRow(["2000", 34]);
data.addRow(["2001", 56]);
data.addRow(["2001", 34]);
data.addRow(["2001", 23]);
data.addRow(["2003", 77]);
data.addRow(["2003", 90]);
--
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.