This may not be exactly what you ask for but in the following blog are some interesting articles about swift charts:
https://nilcoalescing.com/tags/charts/
They may give you some ideas on how to solve your specific problem.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: