1. Static Component Guide
  2. Govspeak content
  3. Charts

Govspeak content example

Charts

How to call this example

<%= render "govuk_component/govspeak" {
  content: "<table class='js-barchart-table mc-auto-outdent'>
      <caption>A table with numerical data</caption>
      <tbody>
        <tr>
          <td>row 1</td><td>10</td>
        </tr>
        <tr>
          <td>row 2</td><td>15</td>
        </tr>
      </tbody>
    </table>
    "
} %>

How it looks

A table with numerical data
row 1 10
row 2 15