Hi, I've stumbled across a bug in the timeline.
When you have a month crossing entry in the data like the "Ordina" block in the example [ 'Ordina', 'Ordina_Backup_Full', new Date(2015, 6, 1, 18, 30, 0), new Date( 2015, 6, 2, 2, 0, 38) ], You this error: Invalid data at row #0: start(Wed Jul 01 2015 18:30:00 GMT+0200 (W. Europe Daylight Time)) > end(Wed Jul 01 2015 04:14:27 GMT+0200 (W. Europe Daylight Time)).× Remove that row, and all is well.. Any programmer @ google up for the challenge ? Grtz, Theo Ekelmans The Netherlands <html> <head> <META HTTP-EQUIV="refresh" CONTENT="3"> <script type="text/javascript" src= "https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1','packages':['timeline']}]}" ></script> <script type="text/javascript"> google.setOnLoadCallback(drawChart); function drawChart() { var container = document.getElementById('JobTimeline'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visualization.DataTable(); dataTable.addColumn({ type: 'string', id: 'Position' }); dataTable.addColumn({ type: 'string', id: 'Name' }); dataTable.addColumn({ type: 'date', id: 'Start' }); dataTable.addColumn({ type: 'date', id: 'End' }); dataTable.addRows([ [ 'Ordina', 'Ordina_Backup_Full', new Date(2015, 5, 31, 18, 30, 0), new Date (2015, 6, 1, 4, 14, 27) ], [ 'Ordina', 'Ordina_Backup_Full', new Date(2015, 5, 30, 18, 30, 0), new Date (2015, 5, 31, 4, 56, 46) ], [ 'Ordina', 'Ordina_Backup_Full', new Date(2015, 6, 2, 18, 30, 0), new Date( 2015, 6, 3, 2, 13, 9) ], [ 'DWH Productie', 'Productie_DWH_Export wekelijks en eerste dag van de maand', new Date(2015, 6, 1, 6, 0, 0), new Date(2015, 6, 1, 7, 2, 40) ], [ 'DWH Productie', 'Productie_DWH_Export wekelijks en eerste dag van de maand', new Date(2015, 6, 2, 6, 0, 0), new Date(2015, 6, 2, 7, 23, 20) ], [ 'DWH Productie', 'Productie_DWH_ProcessFullCubes', new Date(2015, 6, 3, 7, 27, 17), new Date(2015, 6, 3, 8, 40, 42) ], [ 'DWH Productie', 'Productie_DWH_ProcessFullCubes', new Date(2015, 6, 1, 3, 56, 47), new Date(2015, 6, 1, 5, 9, 17) ], [ 'DWH Productie', 'Productie_DWH_ProcessFullCubes', new Date(2015, 5, 31, 3 , 48, 48), new Date(2015, 5, 31, 4, 59, 28) ], [ 'DWH Productie', 'Productie_DWH_ProcessFullCubes', new Date(2015, 6, 2, 8, 58, 54), new Date(2015, 6, 2, 10, 14, 37) ], [ 'DWH Productie', 'productie_DWH_Email', new Date(2015, 6, 2, 6, 15, 0), new Date(2015, 6, 2, 6, 45, 3) ], [ 'DWH Productie', 'productie_DWH_Email', new Date(2015, 6, 3, 6, 15, 0), new Date(2015, 6, 3, 6, 45, 16) ], ]); chart.draw(dataTable); } </script> </head> <body> <div id="JobTimeline" style="width: 1885px; height: 900px;"></div> </body> </html> -- 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. For more options, visit https://groups.google.com/d/optout.
