All -
I'm trying to create a gantt type chart that uses dates but the hAxis is going backwards to 1950 and forwards to 2125.
Here is the sample:
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('date', 'start');
data.addColumn('date', '1');
data.addColumn('date', '2');
data.addColumn('date', '3');
data.addColumn('date', '4');
data.addRow(['First', new Date(2013, 1, 1), new Date(2013, 2, 1), new Date(2013, 4, 1), null, null]);
data.addRow(['Second', new Date(2013, 2, 1), null, null, new Date(2013, 2, 1), new Date(2013, 9, 1)]);
new google.visualization.BarChart(document.getElementById('visualization')).
draw(data,
{title:"Example broken XAxis",
width:1600, height:400,
vAxis: {title: "Project"},
hAxis: {title: "Date"}, isStacked: true,
series: {
0: {
visibleInLegend: false,
color: 'transparent'
}
}}
);
}
Any ideas if this is possible? If so what am I doing wrong?