In my TypeScript Angular application, I am currently incorporating PrimeNG. Specifically, I am utilizing the dialog component from PrimeNG to display charts using ngx-charts, specifically the ngx-charts-line-chart module. Initially, when I open the dialog, the chart appears perfectly fine. However, upon closing and reopening the dialog, the lines on the chart disappear without any error messages being displayed. Even though the lines are missing, I can still hover over the chart and see the points via tooltips. One possible explanation for this issue could be that when the dialog is closed, it undergoes resizing which may be causing some unexpected behavior in ngx-charts.