lass="csharp"><pre>
<span class="atSign">&#64;</span>code {
    LineChart&lt;<span class="keyword">double</span>&gt; lineChart;

    <span class="keyword">protected</span> <span class="keyword">override</span> <span class="keyword">async</span> Task OnAfterRenderAsync( <span class="keyword">bool</span> firstRender )
    {
        <span class="keyword">if</span> ( firstRender )
        {
            <span class="keyword">await</span> HandleRedraw();
        }
    }

    <span class="keyword">async</span> Tas