When I add:
var data = google.visualization.arrayToDataTable
([
['Hora', 'Mínima',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}, 'Média',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}, 'Máxima',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}],['14:50', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',0.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','NE (0.8)', 4.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','4.0'],['15:00', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',2.6,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (2.6)', 6.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','6.7'],['15:10', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',5.5,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (5.5)', 10.2,'point { size: 3; shape-type: circle; fill-color: #FFCC00','10.2'],['15:20', 2.2,'point { size: 3; shape-type: circle; fill-color: #33CC00','2.2',73,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.3)', 11.8,'point { size: 3; shape-type: circle; fill-color: #FFCC00','11.8'],['15:30', 2.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','2.8',7.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.7)', 11.8,'point { size: 3; shape-type: circle; fill-color: #FFCC00','11.8'],['15:40', 3.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','3.8',7.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.0)', 10.2,'point { size: 3; shape-type: circle; fill-color: #FFCC00','10.2'],['15:50', 5.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','5.7',8.4,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (8.4)', 13.0,'point { size: 3; shape-type: circle; fill-color: #FFCC00','13.0']
]);
it works fine, but when i set this value into a variable doesn't work.
Like:
var vvalor_inserir = "['Hora', 'Mínima',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}, 'Média',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}, 'Máxima',{type: 'string', role: 'style'},{type: 'string', role: 'annotation'}],['14:50', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',0.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','NE (0.8)', 4.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','4.0'],['15:00', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',2.6,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (2.6)', 6.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','6.7'],['15:10', 0.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','0.0',5.5,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (5.5)', 10.2,'point { size: 3; shape-type: circle; fill-color: #FFCC00','10.2'],['15:20', 2.2,'point { size: 3; shape-type: circle; fill-color: #33CC00','2.2',7 3,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.3)', 11.8,'point { size: 3; shape-type: circle; fill-color: #FFCC00','11.8'],['15:30', 2.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','2.8',7.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.7)', 11.8,'point { size: 3; shape-type: circle; fill-color: #FFCC00','11.8'],['15:40', 3.8,'point { size: 3; shape-type: circle; fill-color: #33CC00','3.8',7.0,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (7.0)', 10.2,'point { size: 3; shape-type: circle; fill-color: #FFCC00','10.2'],['15:50', 5.7,'point { size: 3; shape-type: circle; fill-color: #33CC00','5.7',8.4,'point { size: 3; shape-type: circle; fill-color: #33CC00','SE (8.4)', 13.0,'point { size: 3; shape-type: circle; fill-color: #FFCC00','13.0']";
var data = google.visualization.arrayToDataTable
([
vvalor_inserir
]);
Any idea?