can gantt chart arrows originate from the left rather than the middle?

Skip to first unread message

Steve Almond

Sep 4, 2021, 2:09:39 AMSep 4
to Google Visualization API
using the simple example below, is it possible for the arrows to originate from the left side of the dependencies rather than from the middle?  Or is it possible to change the origination of the arrows?

Thankyou.  I'm a beginner so please tell me if my post isn't clear.
thanks steve.

  <script type="text/javascript" src=""></script>
  <script type="text/javascript">
    google.charts.load('current', {'packages':['gantt']});

    function daysToMilliseconds(days) {
      return days * 24 * 60 * 60 * 1000;

    function drawChart() {

      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Task ID');
      data.addColumn('string', 'Task Name');
      data.addColumn('string', 'Resource');
      data.addColumn('date', 'Start Date');
      data.addColumn('date', 'End Date');
      data.addColumn('number', 'Duration');
      data.addColumn('number', 'Percent Complete');
      data.addColumn('string', 'Dependencies');

        ['Research', 'Find sources', null, new Date(2015, 0, 1), new Date(2015, 0, 5), null,  100,  null], 
['Write', 'Write paper', 'write', null, new Date(2015, 0, 9), daysToMilliseconds(3), 25, 'Research,Outline'],
        ['Cite', 'Create bibliography', 'write', null, new Date(2015, 0, 7), daysToMilliseconds(1), 20, 'Research'],
        ['Complete', 'Hand in paper', 'complete', null, new Date(2015, 0, 10), daysToMilliseconds(1), 0, 'Cite,Write'],
        ['Outline', 'Outline paper', 'write', null, new Date(2015, 0, 6), daysToMilliseconds(1), 100, 'Research']

      var options = {
        height: 275

      var chart = new google.visualization.Gantt(document.getElementById('chart_div'));

      chart.draw(data, options);
  <div id="chart_div"></div>

Reply all
Reply to author
0 new messages