SpreadJS Documentation
removeSparkline Method
The row index.
The column index.
Removes the sparkline for the specified cell.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.removeSparkline(row, col);
function removeSparkline( 
   row : number,
   col : number
) : any;

Parameters

row
The row index.
col
The column index.
Example
This example removes a sparkline.
var cellr = new GcSpread.Sheets.Range(0, 0, 1, 5);
var ex = new GcSpread.Sheets.SparklineSetting();
ex.SeriesColor  = "Aquamarine";
sheet.setValue(0, 0, 2);
sheet.setValue(0, 1, 5);
sheet.setValue(0, 2, 4);
sheet.setValue(0, 3, -1);
sheet.setValue(0, 4, 3);
sheet.setSparkline(0, 5, cellr, GcSpread.Sheets.DataOrientation.Horizontal, GcSpread.Sheets.SparklineType.column, ex);
alert(sheet.getSparkline(0, 5).toString());
sheet.removeSparkline(0, 5);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.