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

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

Creates a parameter value with label and value.

## Declaration

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

## Parameters

- `label`: The label.
