hi all,
ERROR:
.Uncaught SyntaxError: Unexpected token {
this is my code
<html>
<head>
<script type="text/javascript"
src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['timeline']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var container = document.getElementById('timeline');
var chart = new google.visualization.Timeline(container);
var dataTable = new google.visualization.DataTable({ cols: [
{id:'Fase',label:'Fase',type:'string'},
{id:'Responsabile',label:'Responsabile',type:'string'},
{id:'Inizio',label:'Inizio',type:'date'},
{id:'Fine',label:'Fine',type:'date'}],
{ rows: [
{c:[{v:'1'},{v:'Philip'},{v: new Date('01/01/2015')},{v: new
Date('12/31/2015')}]},
{c:[{v:'2'},{v:'George'},{v: new Date('01/01/2016')},{v: new
Date('12/31/2016')}]},
{c:[{v:'3'},{v:'Anthony'},{v: new Date('01/01/2017')},{v: new
Date('12/31/2017')}]
}]
});
chart.draw(dataTable);
}
</script>
</head>
<body>
<div id="timeline" style="height:300px;"></div>
</body>
</html>
i cant find the error, can someone plz help me?
Gianluca
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/cbfa526b-ab00-4176-9297-772aec6dc6c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.