Hello, I have been using this timeline package of google charts which is 
fabulous.  Just wondering how I can merge my events to showup the 
overlaps.  For instance If I'm charging a device and a "full charge" event 
occurred while its charging I'd like to see it inside the same bar.

Hope it makes sense. Please let me know.

Thank you!

-HTMLFORM BEGIN
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title>Battery Charging Activity</title>
    <script type="text/javascript" 
src="https://www.gstatic.com/charts/loader.js";></script>

    <script type="text/javascript">
        google.charts.load("current", { packages: ["timeline"] });
        google.charts.setOnLoadCallback(drawChart);
        function drawChart() {
            var container = document.getElementById('mytimeline');
            var chart = new google.visualization.Timeline(container);
            var dataTable = new google.visualization.DataTable();
            dataTable.addColumn({ type: 'string', id: 'EventDate' });
            dataTable.addColumn({ type: 'string', id: 'EventType' });
            dataTable.addColumn({ type: 'date', id: 'Start' });
            dataTable.addColumn({ type: 'date', id: 'End' });
            dataTable.addRows([
             !IBI.FIL.HLDDATA;
            ]);
var options = {
        timeline: { showRowLabels: false },
        avoidOverlappingGridLines: false
      };
            chart.draw(dataTable);
        }
    </script>
    </head>
    <body>
     <div id="mytimeline" style="height: 600px;width:1000px"></div>
    </body>
</html>
-HTMLFORM END



-- 
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/7898f87a-556b-4a8c-81c9-0ce73d24e1be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to