addSparkline

adds a sparkline into a cell

void addSparkline(number rowId,number columnId,object config);

Parameters

rowIdnumberthe row id
columnIdnumberthe column id
configobjectthe sparkline configuration

Example

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

Related samples

Details

the config object includes the following properties:

  • type - (string) the type of an added 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.