如何在datatables子行中添加图表div?
我的代码无效
我不是程序员:(
演示代码
https:// codepen.io/intprotest/pen/QXPmBr
谢谢!
代码
$(document).ready(function (){
var table = $('#example').DataTable({
responsive: true
});
});
Highcharts.chart('chart1', {
data: {
googleSpreadsheetKey: '1KKJgBPhFQzNzvgGHz7ygwuTJl5mXlxh1GTxOYxfyVqg'
}
});
<!-- begin snippet: js hide: false console: true babel: false -->
<tr>
<th>Name</th>
<th>Position</th>
<th >geo </th>
<th> ge</th>
<th class="none">... </th>
</tr>
<tr>
<td>HighCharts Code </td>
<td>Junior Technical Author</td>
<td> 1</td>
<td>2 </td>
<td>
<div id="chart1" style="width: 300px; height: 140px;"></div>
</td>
</tr>