an class="st">&quot;red&quot;</span><span class="op">,</span> <span class="st">&quot;green&quot;</span><span class="op">,</span> <span class="st">&quot;blue&quot;</span>]</a>
<a class="sourceLine" id="cb101-3" title="3"><span class="op">}</span>)</a></code></pre></div>
<p>This will now produce a working widget, albeit limited to creating charts of a predefined type and colour. Next, these options defining the chart type, fill colours, and others must be made available from R.</p>
<p>Below we add a <code>typ