addSparkline

adds a sparkline into a cell

void addSparkline(number rowId,number columnId,object config, [string page] );
rowIdnumberthe row id
columnIdnumberthe column id
configobjectthe sparkline configuration
pagestringoptional, the name of the sheet. If not specified, the method is applied to the current sheet

Example

$$("my").addSparkline(5, 5, {type:"line", range:"B4:E4", color:"#6666FF"}, "Sheet1");

Related samples

Details

The config object includes the following properties:

  • type - (string) the type of the sparkline
  • range - (string) a range of cells the values of which will be used for making a sparkline
  • color - (string) the color of a sparkline either in a hex format or as a color name
  • negativeColor - (string) the color of a negative value for a Bar sparkline
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui library and page of javascript spreadshee product.