Swift Chars chartYScale layout problem

I tried to narrow down the y-axis and use the clipped() to crop the excess. However, the clipped portion is too small, causing some of the chart to render above the x-axis. Is there any way to fix this, or any way to have the framework automatically set the y-axis range based on the data?

Same issue, would be interested to know if this has a solution...

After some digging I found you can also clip in the "plotArea", which is the area where data is plotted, using :

.chartPlotStyle { plotArea in
    plotArea.clipped()
}
Swift Chars chartYScale layout problem
 
 
Q