Issue #978

From iOS 17, SwiftUI Charts has chartGesture, together with SpatialTapGesture we can check tap location and convert that to Charts value

Chart {}
    .chartGesture { chart in
        SpatialTapGesture()
            .onEnded { value in
                let result = chart.value(at: value.location, as: (Int, Double).self)
                if let index = result?.0, let log = logs[safe: index] {
                    print(log)
                }
            }
    }