Right-click context menu of worksheet cell: Insert Graph
Insert graph into a worksheet cell
1. insertGraph gname:=graph1;
2. insertGraph gname:=graph1 keepaspect:=0 resizecell:=0;
3. insertGraph gname:=graph3 embed:=1 keepaspect:=1 axes:=1 label:=1;
4. insertGraph gname:=graph1|graph2 embed:=0 keepAspect:=0;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Graphs | gname |
Input string |
|
Specifies the graph(s) and Layout(s) to be embedded. Multiple windows are separated by '|' character. |
Move Graph to cell (Embedding) | embed |
Input int |
|
Specifies whether or not to embed the graph into the worksheet cell. If this checkbox is cleared, the graph will be linked to the graph. Otherwise, the graph will be embedded into the cell. |
Display Caching | display |
Input int |
|
Specify the method of display caching.
Option list:
|
Resize Cell | resizecell |
Input int |
|
Specifies whether or not to resize the worksheet cell to fit the embedded or linked graph. |
Keep Aspect Ratio | keepAspect |
Input int |
|
Specifies whether or not to keep the aspect ratio of the graph. |
Hide Axes and Legend | axes |
Input int |
|
Specifies whether or not to hide the axes of the graph when it is displayed in the worksheet cell. |
Hide Text Labels | label |
Input int |
|
Specifies whether or not to hide the text labels on the graph when it is displayed in the worksheet cell. |
Top Left Cell | cell |
Output Range |
|
Specifies the top left cell where the first graph will be inserted. Other graphs, if any, will be inserted in cells to the right then below. |
This X-Function inserts the chosen graph(s) and Layout(s) into specified cell in a worksheet.
Inserted graphs/layouts can be either embedded or linked.
insertImg, insertNotes, insertSparklines, insertArrow, insertVar