e">Usage</h2>
<h3 id="via-data-attributes">Via Data attributes</h3>
<p>The HTML in the above example shows how the DOM needs to be structured to ensure the plugin works correctly.  The plugin will be auto invoked when the boolean data-attribute <code>data-chart-controls</code> features in the DOM.</p>
<pre><code>&lt;form data-chart-controls&gt;
  ...
&lt;/form&gt;
</code></pre><p>The data-attribute <code>data-chart-controls-for=&quot;[&#39;chart1&#39;, &#39;table1&#39;]</code> tells the plugin which compone