Govspeak content example
Chart with multiple headings
How it looks (preview)
| Some Data | YES | NO | MAYBE |
|---|---|---|---|
| Testing One | No data | 7 | 6 |
| Testing Two | 6 | 2 | No data |
| Testing Three | 3 | No data | 9 |
How to call this example
<%= render "govuk_publishing_components/components/govspeak", {} do %>
<table id="multiple-table-chart" class="js-barchart-table mc-multiple">
<caption>Multiple Table</caption>
<thead>
<tr><th>Some Data</th><th>YES</th><th>NO</th><th>MAYBE</th></tr>
</thead>
<tbody>
<tr><th>Testing One</th><td>No data</td><td>7</td><td>6</td></tr>
<tr><th>Testing Two</th><td>6</td><td>2</td><td>No data</td></tr>
<tr><th>Testing Three</th><td>3</td><td>No data</td><td>9</td></tr>
</tbody>
</table>
<% end %>