Right-click context menu of worksheet cell: Insert Sparklines...
Insert sparklines into worksheet cells
1. insertSparklines irng:=col(2) plottype:=his orng:=col(3)[1];
2. insertSparklines irng:=col(2):col(4) name:=0 c2:=min c3:=max label:=0 size:=double orng:=col(5)[1];
3. insertSparklines irng:=col(2):col(4) name:=0 c2:=mean keepAspect:=1 endpts:=0 orng:=col(5)[5] xfrom:=0 xto:=500 yfrom:=0 yto:=200;
Please refer to the page for additional option switches when accessing the x-function from script
Input
Range
Specifies the data columns for the sparklines.
int
Specifies the direction of the inserted cells. Option list:
Specifies whether or not to show the Long Names of the data columns in the first specified column.
Specifies whether or not to add a third column. If this column is added, user can further specify its content. Option list:
Specifies whether or not to add a fourth column. If this column is added, user can further specify its content. Option list:
Specifies whether or not to add a fifth column. If this column is added, user can further specify its content. Option list:
Specifies whether or not to add a sixth column. If this column is added, user can further specify its content. Option list:
Option list:
string
Specifies the graph template used to generate the sparklines. Support both *.otpu, and *.otp types.
Specifies whether or not to hide the annotation (text labels and legend) on the sparklines.
Specifies whether or not to keep the aspect ratio of the sparklines.
Specifies the height of the cells, into which the sparklines are inserted. Option list:
Specifies whether to show the first and last points for the sparklines.
Output
Specifies the top left cell (the first cell) to insert. See the syntax here.
double
Specifies the first X scale value for the sparklines.
Specifies the last X scale value for the sparklines.
Specifies the first Y scale value for the sparklines.
Specifies the last Y scale value for the sparklines.
This X-Function plots the sparklines for a range of data columns and inserts them into specified worksheet cells. It can also calculate the mean value, minimum value and maximum value of each data column. You can use it to generate a simple report for the data columns.
insertGraph, insertNotes, insertImg, insertArrow, insertVar, Sparklines, UpdateSparklines