---
title: "didSelectChartView(_:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockchartviewcontroller/didselectchartview(_:)"
---

# didSelectChartView(_:)

Notifies the delegate a chart view has been selected.

## Declaration

```swift
func didSelectChartView(_ chartView: UIView & OCKChartDisplayable)
```

## Parameters

- `chartView    `: The view that displays the chart.
