# Google Cloud Chronicle V1 Client - Class VisualMapPiece (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class VisualMapPiece.

An ECharts visual map of type 'piecewise' contain many pieces. Each
piece has a min, max, and color with which it's rendered.

Generated from protobuf message `google.cloud.chronicle.v1.DashboardChart.Visualization.VisualMap.VisualMapPiece`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ DashboardChart \\ Visualization \\ VisualMap

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min` | `int|string` Optional. Minimum value for the piece. |
| `↳ max` | `int|string` Optional. Minimum value for the piece. |
| `↳ color` | `string` Optional. Color to render the piece in when the value is between min and max. |
| `↳ label` | `string` Optional. Label used in visual map controller. |

### getMin

Optional. Minimum value for the piece.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasMin

### clearMin

### setMin

Optional. Minimum value for the piece.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMax

Optional. Minimum value for the piece.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasMax

### clearMax

### setMax

Optional. Minimum value for the piece.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getColor

Optional. Color to render the piece in when the value is between min
and max.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setColor

Optional. Color to render the piece in when the value is between min
and max.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabel

Optional. Label used in visual map controller.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLabel

Optional. Label used in visual map controller.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |