Basic chart rendering issues

I am working on reinforcement learning (DQN for fighting game AI) and am trying out Syncfusion for modeling the data as I train.I am having a peculiar issue for both LineSeries and BarSeries where even the most basic of rendering of lines does not work properly. You can see the data on the left in "LossCheckpoints" and then see how the rendering starts in the middle of the chart instead of at the correct left edge. Also, the values are incorrectly paired / mixed. I was a little surprised that I cannot upload .pngs or pdfs or word documents, but zipped files are ok, so I added a zip file of the PDF that shows the code (its like 30 lines of code) and have uploaded the PDF showing a screenshot and the source code to this google drive link. https://drive.google.com/file/d/1p54R7Afd5z43CXMZ7CE9CEbprlTKfqM5/view?usp=sharing 


 I hope you can help. Im excited to use this product and showcase it with my DQN RL model. Thanks! - Nicolas


Attachment: Example_bug_abd5dd48.7z

2 Replies

NT Nitheeshkumar Thangaraj Syncfusion Team September 27, 2024 01:14 PM UTC

Hi Nicolas,


Based on the information and code snippet you provided, we have implemented it in a simple sample and were able to reproduce the issue. We will need some additional time to validate the cause of the mismatch and will update you with our findings and status by two working business days, October 02, 2024.

Thank you for your understanding and patience.


Regards,

Nitheeshkumar.



NT Nitheeshkumar Thangaraj Syncfusion Team September 30, 2024 11:29 AM UTC

Hi Nicolas,

We would like to inform you that in WPF, each chart element is also a UI element, and setting the width for individual series can cause issues. We recommend not setting the width for the series.

By removing Series.Width = 30 from your provided code snippet, you should achieve the correct output.


Please let us know if you have any further questions or need assistance!


Regards,

Nitheeshkumar.


Loader.
Up arrow icon