Exemplo de Timeline(Linha do Tempo)


google.charts.load('current' , {'packages': ['timeline']});

google.charts.setOnLoadCallback( drawChart );


function drawChart(){
    var container = document.getElementById('timeline');
   
    var dataTable = new google.visualization.DataTable();

    dataTable.addColumn({ type: 'string', id: 'Plano Ecônomico' });
    dataTable.addColumn({ type: 'date', id: 'Inicio' });
    dataTable.addColumn({ type: 'date', id: 'Termino' });
    dataTable.addRows([
        [ 'Cruzado'   , new Date(1986 , 1, 28), new Date(1989, 0, 15) ],
        [ 'Cruzado Novo'   , new Date(1989, 0, 16), new Date(1990, 2, 15) ],
        [ 'Cruzeiro'   , new Date(1990 , 2, 16), new Date(1993, 6, 31) ],
        [ 'Cruzeiro Real', new Date(1993, 7, 1),  new Date(1994, 5, 30) ],
        [ 'Real'         ,  new Date(1994, 6, 1),  new Date(2020, 3, 20) ]]);
      
    var chart = new google.visualization.Timeline( document.getElementById('chart_div') );
    chart.draw(dataTable);
}