---
title: "init(viewSynchronizer:weekOfDate:configurations:storeManager:)"
framework: CareKit
role: symbol
role_heading: Initializer
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockchartviewcontroller/init(viewsynchronizer:weekofdate:configurations:storemanager:)"
---

# init(viewSynchronizer:weekOfDate:configurations:storeManager:)

Creates a new chart view controller with a specific date, synchronizer, and configuration.

## Declaration

```swift
convenience init(viewSynchronizer: ViewSynchronizer, weekOfDate: Date, configurations: [OCKDataSeriesConfiguration], storeManager: OCKSynchronizedStoreManager)
```

## Parameters

- `viewSynchronizer   `: The object that handles updating the view when data in the store changes.
- `weekOfDate    `: The date the chart will contain. Charts show a weeks worth of data, the date you provide will be part of the week.
- `configurations    `: An object that specifies which data to query, and how the graph will display it.
- `storeManager  `: The object that synchronizes between the store and controller.

## See Also

### Creating Chart View Controllers

- [init(controller:viewSynchronizer:)](carekit/ockchartviewcontroller/init(controller:viewsynchronizer:).md)
- [init(plotType:selectedDate:configurations:storeManager:)](carekit/ockchartviewcontroller/init(plottype:selecteddate:configurations:storemanager:).md)
