update entra id
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
export function generatePieTable(labels, series) {
|
||||
let tableHTML = `
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Category</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
${labels
|
||||
.map(
|
||||
(label, i) => `
|
||||
<tr>
|
||||
<td>${label}</td>
|
||||
<td>${series[i]}</td>
|
||||
</tr>
|
||||
`,
|
||||
)
|
||||
.join("")}
|
||||
</tbody>
|
||||
</table>`;
|
||||
return tableHTML;
|
||||
}
|
||||
Reference in New Issue
Block a user