Possible SwiftChart bug with overflowResolution

I've been trying to reproduce the example used in the WWDC 23 Presentation "Explore Pit Charts and Interactivity in SwiftCharts" where a popover annotation is set on top of the chart and vertical; RuleMark. However when doing so the annotation doesn't appear at all.

I worked around that issue by setting: y: .fit(to: .chart) in the init of the overflowResolution, like:

 .annotation(position: .top, spacing: 0, overflowResolution: .init(x: .fit(to: .chart), y: .fit(to: .chart)))

Probably a SwiftUI bug given this API is only a few months old. If anyone has been able to reproduce that example let me know!

Hey @Geneva0 , thanks for posting! Looks like a bug to me :) please file a bug report at https://feedbackassistant.apple.com and post the FB number here. Thanks for adding that workaround as well!

Possible SwiftChart bug with overflowResolution
 
 
Q