Exception on chart resize in Blazor

Hi!
I have multiple charts on a page. When resizing the page a exception occures:

Server-side Blazor: Error: There was an exception invoking 'OnChartResize'. 
However this does not really effect behaviour. On every resize charts are redrawn (this might be intended but not the best UX).

Client-side Blazor: Error: System.ArgumentException: There is no tracked object with id '2'.
And some charts (usually the ones outside viewing area) are NOT redrawn.

See attachments for details.

Thanks for the help.

Attachment: Exceptions_4b19a119.zip

3 Replies 1 reply marked as answer

KR Kristof January 6, 2021 10:15 AM UTC

So far it seems thet this happens when I have multiple Column charts on the same page (renderen inside a foreach block).

The code for a single diagam:
@using Syncfusion.Blazor.Charts;

<div style=@($"height: {Height}; width: {Width}")>
    <SfChart Height=@Height [email protected]>
        <ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category" Visible="false" />
        <ChartPrimaryYAxis LabelFormat=@("{value}%") />
        <ChartSeriesCollection>
            <ChartSeries DataSource=@Data XName="Id" YName="Data" PointColorMapping="Color" [email protected]>
                <ChartMarker><ChartDataLabel Visible="true" [email protected] Name="Label" /></ChartMarker>
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>
</div>


DG Durga Gopalakrishnan Syncfusion Team January 7, 2021 04:01 PM UTC

Hi Kristof,

We have ensured the reported scenario with attached code snippet in both client and server side. We are unable to reproduce reported console errors in both client and server. We have attached samples for your reference. Please try to replicate an issue in attached samples or provide us issue reproduced sample, so that it will be helpful for us to proceed further. In latest version, we have changed chart event names. We suggest you change OnChartResize to SizeChanged to resolve an issue.


We were able to reproduce chart hidden issue while resizing the browser window in client app and we have already logged a defect report for this issue. This fix will be available in our upcoming weekly patch release which is scheduled to be rolled out on 12th January 2021. We appreciate your patience until then. You can keep track of the bug from the feedback portal below.

  
The provided feedback link is private, and you need to login to view this feedback.
 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.

Regards,
Durga G




DG Durga Gopalakrishnan Syncfusion Team January 13, 2021 02:45 PM UTC

Hi Kristof, 

We are glad to announce that our v18.4.34 patch release is rolled out; we have added the fix for chart hidden issue while resizing the browser window in client app . You can use the latest Syncfusion.Blazor NuGet package version


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 

Regards,
Durga G

Marked as answer
Loader.
Up arrow icon