---
title: "value(_:_:unit:calendar:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/plottablevalue/value(_:_:unit:calendar:)-2r0fo"
---

# value(_:_:unit:calendar:)

Creates a parameter value with label and value.

## Declaration

```swift
static func value<S>(_ label: S, _ date: Date, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableValue<Value> where Value == Date, S : StringProtocol
```

## Parameters

- `label`: The label.
