I am using the D7 version of this module.
I would like to create a graph like this one on the Google Chart docs - https://google-developers.appspot.com/chart/interactive/docs/customizing...
Here's the Javascript used to create it -
google.setOnLoadCallback(drawContinuousDateChart);
function drawContinuousDateChart() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'Mass (gm)');
data.addRows([
[new Date(2008, 0, 1), 1],
[new Date(2008, 1, 11), 2],
[new Date(2008, 2, 11), 12],
[new Date(2008, 5, 15), 30],
[new Date(2008, 6, 11), 22],
[new Date(2008, 7, 12), 25],
[new Date(2008, 8, 24), 22],
[new Date(2009, 1, 1), 30]]);
var options = {
title: 'Total Mass of Bacteria Population in Petri',
width: 400, height: 240,
strictFirstColumnType: true,
legend: 'none',
pointSize: 5,
hAxis: {title: 'Date', format: 'MMM yy'},
vAxis: {title: 'Mass (gm)'}
};
// Create and draw the visualization.
var chart= new google.visualization.LineChart(document.getElementById('continuous_date_chart'));
chart.draw(data, options);
}
When I look through the module I don't see how I can specify the column type as number, date, datetime or timeofday which is what the Google doc say you are supposed to do if you want to create a continuous graph. So is there a way to do it?
Comments
Comment #1
13rac1 commentedThis module has no support for the new Google Maps JavaScript API, only works with the older (now deprecated) Image API.
No work has been completed toward using the JS API, but the plan is documented here: #1196712: New Interactive Google Charts API?
Comment #3
Pierre.Vriens commentedI want to reconsider this issue in the context of #2368793: Chart 2.0, which is why I reopen this issue now ...
Comment #4
Pierre.Vriens commented