Hello, I'm trying to generate a line chart like this:

var options = {
                title: 'Tray Data',
                curveType: 'function',
                legend: { position: 'right' }
            };
function (title, axisX, axisY, columns, data)
{
    options.title = title;
    options.hAxis = axisX;
    options.vAxis = axisY;
    var table = new google.visualization.DataTable();
    var chart = new 
google.visualization.LineChart(document.getElementById('curve_chart'));
    for (var c in columns)
        table.addColumn(columns[c][0], columns[c][1]);
    table.addRows(data);
    chart.draw(table, options);
}

I have four colums, the first one containing a Date Object and being the 
horizontal axis. The axis are formatted like this:
Horizontal: { title: "Time / Date", gridlines: { count: 10, color: '#CCC' 
}, format: 'dd-MM-yyyy' }
Vertical: { title: "Display Time (s)", gridlines: { count: 10, color: 
'#CCC' } }

For some reason the resulting chart will not display anything except the 
title for the horizontal axis, not even the grid lines. I'm not getting any 
JS errors. Any idea what I am doing wrong ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/b957d77d-30c0-41e5-8872-8bb950f64175%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to