Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
Google Gantt Chart Grouping Task Dependency Arrows

Problem: If there isn't enough separation (time) between the tasks (bars), the dependency arrows don't display properly.

Question: Is it possible to start the dependency arrows from the left of each task bar instead of the middle?

Example of Problem:

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

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');

  data.addRows([
['I0', 'External data acquisition request', 'RB',
     new Date(2022, 4, 9), new Date(2022, 5, 29), null, 10, null],
    ['I1', 'data extraction', 'JK',
     new Date(2022, 4, 15), new Date(2022, 5, 5), null, 100, null],
    ['I2', 'Create dataframe', 'RB',
     new Date(2022, 4, 17), new Date(2022, 5, 10), null, 100, 'I1']
  ]);

   var options = {
      height: 700,
      gantt: {
        criticalPathEnabled: false, // Critical path arrows will be the same as other arrows.
        arrow: {
          angle: 50,
          width: 1,
          color: 'green',
          radius: 30
        }
      }
    };

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

  chart.draw(data, options);
}
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
     <div id="chart_div"></div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!