Spread.Sheets Documentation
paintSparkline Method
GC.Spread.Sheets.Sparklines Namespace > Sparkline class : paintSparkline Method
The canvas's two-dimensional context.
x-coordinate relative to the canvas.
y-coordinate relative to the canvas.
The width of the cell that contains the sparkline.
The height of the cell that contains the sparkline.
Paints the sparkline in the specified area.
Syntax
var instance = new GC.Spread.Sheets.Sparklines.Sparkline(row, column, dataReference, dataOrientation, type, setting);
var value; // Type: any
value = instance.paintSparkline(ctx, x, y, w, h);
function paintSparkline( 
   ctx : CanvasRenderingContext2D,
   x : number,
   y : number,
   w : number,
   h : number
) : any;

Parameters

ctx
The canvas's two-dimensional context.
x
x-coordinate relative to the canvas.
y
y-coordinate relative to the canvas.
w
The width of the cell that contains the sparkline.
h
The height of the cell that contains the sparkline.
See Also

Reference

Sparkline class