---
title: "Chart"
hideTitleOnPage: true
---

## Chart

Chart class for Daytona SDK.

### Constructors

#### new Chart()

```ruby
def initialize(type:, title:, png:, elements:)

```

**Returns**:

- `Chart` - a new instance of Chart

### Methods

#### type=()

```ruby
def type=(value)

```

Sets the attribute type

**Parameters**:

- `value` _Object_ - the value to set the attribute type to.

**Returns**:

- `Object` - the newly set value

#### type()

```ruby
def type()

```

Returns the value of attribute type

**Returns**:

- `Object` - the current value of type

#### title=()

```ruby
def title=(value)

```

Sets the attribute title

**Parameters**:

- `value` _Object_ - the value to set the attribute title to.

**Returns**:

- `Object` - the newly set value

#### title()

```ruby
def title()

```

Returns the value of attribute title

**Returns**:

- `Object` - the current value of title

#### png=()

```ruby
def png=(value)

```

Sets the attribute png

**Parameters**:

- `value` _Object_ - the value to set the attribute png to.

**Returns**:

- `Object` - the newly set value

#### png()

```ruby
def png()

```

Returns the value of attribute png

**Returns**:

- `Object` - the current value of png

#### elements=()

```ruby
def elements=(value)

```

Sets the attribute elements

**Parameters**:

- `value` _Object_ - the value to set the attribute elements to.

**Returns**:

- `Object` - the newly set value

#### elements()

```ruby
def elements()

```

Returns the value of attribute elements

**Returns**:

- `Object` - the current value of elements
