/peity.js&quot;</span><span class="kw">&gt;&lt;/script&gt;</span></a>
<a class="sourceLine" id="cb92-10" title="10">...</a></code></pre></div>
</div>
<div id="widgets-realistic-implementation" class="section level2">
<h2><span class="header-section-number">6.2</span> Implementation</h2>
<p>The JavaScript code for peity.js is relatively uncomplicated. It is just one function, but integrating it with htmlwidgets requires some thinking. In the example below, peity is applied to the element with <code>id = 'ele