in the table.draw command, the allowHtml needs to be there

          table.draw(data, {showRowNumber: false, width: '100%', height: 
'100%', allowHtml: true});

On Tuesday, September 18, 2018 at 12:57:47 PM UTC-4, Greg Slocum wrote:

> I have the code below to display a table.  I'd like to have the material 
> "number" in column 0 serve as a link to an htm file that displays a chart.  
> I know how to write the href, but not how to put it in the cell in the 
> table.
>
> Any help appreciated.
>
> <html>
> <head>
> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
>   <script type="text/javascript" src="
> https://www.gstatic.com/charts/loader.js";></script>
>     <script type="text/javascript">
>       google.charts.load('current', {'packages':['table']});
>       google.charts.setOnLoadCallback(drawTable);
>     function drawTable() {
>       var data = new google.visualization.DataTable();
>       data.addColumn('string', 'Material');
>       data.addColumn('string', 'Material Description');
>       data.addColumn('string', 'Current Value On Hand');
>       data.addColumn('string', 'Max Value Next 90 Days');
>       data.addColumn('string', 'Current On Hand/Next 90 Requirements');
>       data.addColumn('string', 'Max Next 90/Next 90 Requirements');
>
>       data.addRows([
>     ['2104348', 'LO1-A07-D-MS', '$654,133', '$654,133', '1.59', '1.59'], 
>       ]);
>         var table = new 
> google.visualization.Table(document.getElementById('table_div'));
>           table.draw(data, {showRowNumber: false, width: '100%', height: 
> '100%'});
> }</script>
> </head>
> <body>
>   <div id="line_top_x"></div>
>   <div id="table_div" style="align: center;  height: 300px;"></div>
> </body>
> </html>
>

-- 
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/dcdea04e-a7c4-446d-ac61-6e3404369180%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to