Link to new page

21 views
Skip to first unread message

Eager2learn

unread,
Jan 30, 2017, 9:53:56 AM1/30/17
to Google Visualization API
Hi All, I have this page with the following table (just a sample), when I click on the link I stay on the same page. When i say open in new window or tab I am redirected to the actual link. Could anyone shed some light on this? Thanks in advance

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

      function drawChart() {
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Name');
        data.addColumn('string', '');


        // For each orgchart box, provide the node, account.
        data.addRows([
          //row 0
          [{v:'0', f:'<a href="https://www.google.com">google</a>'},'0'],
          
        ]);

        // Create the chart.
        var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
        // Draw the chart, setting the allowHtml option to true for the tooltips.
        chart.draw(data, {allowHtml:true});
      }
Reply all
Reply to author
Forward
0 new messages