[]
Sheets.Sparklines.StackedSparkline
↳ StackedSparkline
• new StackedSparkline()
Represents the class for the stacked sparkline.
• typeName: string
Represents the type name string used for supporting serialization.
▸ createFunction(): Function
Creates a custom function used to provide data and settings for SparklineEx.
The created custom function.
▸ fromJSON(settings
): void
Loads the object state from the specified JSON string.
Name | Type | Description |
---|---|---|
settings |
Object |
The sparklineEx data from deserialization. |
void
▸ name(): string
Gets the name of SparklineEx.
string
The SparklineEx's name.
▸ paint(context
, value
, x
, y
, width
, height
): void
Paints the SparklineEx on the canvas.
Name | Type | Description |
---|---|---|
context |
CanvasRenderingContext2D |
The canvas's two-dimensional context. |
value |
any |
The value evaluated by the custom function. |
x |
number |
x-coordinate relative to the canvas. |
y |
number |
y-coordinate relative to the canvas. |
width |
number |
The cell's width. |
height |
number |
The cell's height. |
void
▸ toJSON(): Object
Saves the object state to a JSON string.
Object
The sparklineEx data.