Timeline Chart with Google Chart API

by maxim75

HTML

<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>
      Google Visualization API Sample
    </title>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load('visualization', '1', {packages: ['corechart'], 'language': 'ru'});
    </script>
    <script type="text/javascript">
      function drawVisualization() {
        // Create and populate the data table.
        var data = new google.visualization.DataTable();
        data.addColumn('date', 'x');
        data.addColumn('number', 'Cats');
        data.addColumn('number', 'Blanket 1');
        data.addColumn('number', 'Blanket 2');
        data.addRow([new Date(2012, 1, 1), 1, 1, 0.5]);
        data.addRow([new Date(2012, 2, 1), 2, 0.5, 1]);
        data.addRow([new Date(2012, 3, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 4, 1), 4, 1, 0.5]);
        data.addRow([new Date(2012, 5, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 6, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 7, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 8, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 9, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 10, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 11, 1), 0, 0, 0]);
        data.addRow([new Date(2012, 12, 1), 3, 1, 8]);
       
        // Create and draw the visualization.
        new google.visualization.LineChart(document.getElementById('visualization')).
            draw(data, {curveType: "none",
                 colors:['red','#004411','green'],
                        width: 500, height: 400,
                        vAxis: {maxValue:...