presentation
slug: step-printGenerates HTML output from dataset data, creating formatted reports and tables for visualization and presentation. Converts raw data into human-readable format.
columns (array) - Columns to include in the HTML output (default: all columns)title (string) - Title for the HTML report (default: 'HTML Report')actions (array) - Interactive elements to add to the reportprint:
title: "Monthly Sales Report"
columns:
- month
- region
- product_category
- sales_amount
- growth_pct
| month | region | product_category | sales_amount | growth_pct |
|---|---|---|---|---|
| January | North | Electronics | 125000 | 15.2 |
| January | South | Electronics | 98000 | 8.7 |
| January | North | Furniture | 87500 | -2.3 |
| January | South | Furniture | 112000 | 5.1 |
<div class="report">
<h2>Monthly Sales Report</h2>
<table class="data-table">
<thead>
<tr>
<th>Month</th>
<th>Region</th>
<th>Product Category</th>
<th>Sales Amount</th>
<th>Growth %</th>
</tr>
</thead>
<tbody>
<tr>
<td>January</td>
<td>North</td>
<td>Electronics</td>
<td class="numeric">125,000</td>
<td class="numeric positive">15.2%</td>
</tr>
<tr>
<td>January</td>
<td>South</td>
<td>Electronics</td>
<td class="numeric">98,000</td>
<td class="numeric positive">8.7%</td>
</tr>
<tr>
<td>January</td>
<td>North</td>
<td>Furniture</td>
<td class="numeric">87,500</td>
<td class="numeric negative">-2.3%</td>
</tr>
<tr>
<td>January</td>
<td>South</td>
<td>Furniture</td>
<td class="numeric">112,000</td>
<td class="numeric positive">5.1%</td>
</tr>
</tbody>
</table>
</div>
The HTML output creates a professional report with: