ts'</span><span class="token punctuation">,</span>
  <span class="token function">beforeDraw</span><span class="token punctuation">(</span><span class="token parameter">chart<span class="token punctuation">,</span> args<span class="token punctuation">,</span> options</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">const</span> <span class="token punctuation">{</span>ctx<span class="token punctuation">,</span> <span class="token literal-