# GC.Spread.Sheets.Sparklines.LollipopVariSparkline

## Content

# Class: LollipopVariSparkline

[Sheets](../modules/GC.Spread.Sheets).[Sparklines](../modules/GC.Spread.Sheets.Sparklines).LollipopVariSparkline

## Hierarchy

- [`SparklineEx`](GC.Spread.Sheets.Sparklines.SparklineEx)

  ↳ **`LollipopVariSparkline`**

## Table of contents

### Constructors

- [constructor](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#constructor)

### Properties

- [typeName](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#typename)

### Methods

- [createFunction](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#createfunction)
- [fromJSON](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#fromjson)
- [name](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#name)
- [paint](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#paint)
- [toJSON](GC.Spread.Sheets.Sparklines.LollipopVariSparkline#tojson)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new LollipopVariSparkline**()

Represents the class for the Lollipop variance sparkline.

#### Overrides

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[constructor](GC.Spread.Sheets.Sparklines.SparklineEx#constructor)

## Properties

### <a id="typename" name="typename"></a> typeName

• **typeName**: `string`

Represents the type name string used for supporting serialization.

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[typeName](GC.Spread.Sheets.Sparklines.SparklineEx#typename)

## Methods

### <a id="createfunction" name="createfunction"></a> createFunction

▸ **createFunction**(): [`Function`](GC.Spread.CalcEngine.Functions.Function)

Creates a custom function used to provide data and settings for SparklineEx.

#### Returns

[`Function`](GC.Spread.CalcEngine.Functions.Function)

The created custom function.

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[createFunction](GC.Spread.Sheets.Sparklines.SparklineEx#createfunction)

___

### <a id="fromjson" name="fromjson"></a> fromJSON

▸ **fromJSON**(`settings`): `void`

Loads the object state from the specified JSON string.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `settings` | `Object` | The sparklineEx data from deserialization. |

#### Returns

`void`

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[fromJSON](GC.Spread.Sheets.Sparklines.SparklineEx#fromjson)

___

### <a id="name" name="name"></a> name

▸ **name**(): `string`

Gets the name of SparklineEx.

#### Returns

`string`

The SparklineEx's name.

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[name](GC.Spread.Sheets.Sparklines.SparklineEx#name)

___

### <a id="paint" name="paint"></a> paint

▸ **paint**(`context`, `value`, `x`, `y`, `width`, `height`): `void`

Paints the SparklineEx on the canvas.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `context` | `CanvasRenderingContext2D` | The canvas's two-dimensional context. |
| `value` | `any` | The value evaluated by the custom function. |
| `x` | `number` | <i>x</i>-coordinate relative to the canvas. |
| `y` | `number` | <i>y</i>-coordinate relative to the canvas. |
| `width` | `number` | The cell's width. |
| `height` | `number` | The cell's height. |

#### Returns

`void`

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[paint](GC.Spread.Sheets.Sparklines.SparklineEx#paint)

___

### <a id="tojson" name="tojson"></a> toJSON

▸ **toJSON**(): `Object`

Saves the object state to a JSON string.

#### Returns

`Object`

The sparklineEx data.

#### Inherited from

[SparklineEx](GC.Spread.Sheets.Sparklines.SparklineEx).[toJSON](GC.Spread.Sheets.Sparklines.SparklineEx#tojson)
