# Worksheet.getSparklineGroups Method

> Worksheet.getSparklineGroups method in the Node.js JavaScript API: Reads detached sparkline definitions on this sheet without activating it.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > Worksheet > Worksheet.getSparklineGroups Method
- **336 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/getsparklinegroups-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/getsparklinegroups-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/getsparklinegroups-method/llms-full.txt

---

Reads detached sparkline definitions on this sheet without activating it.

Owner: [Worksheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```javascript
owner.getSparklineGroups()
```

This overload has no parameters.

### Return Value

`SparklineGroup[]`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```javascript
function readReportWorksheetGetSparklineGroups(control) {
    const book = control.workbook;
    const worksheet = book.sheets.at(0);
    const result = worksheet.getSparklineGroups();
    return result;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [Worksheet Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/llms-full.txt)
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt)
- [SparklineGroup Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sparklinegroup/llms-full.txt)

---

## Nearby

- **Previous:** [Worksheet.duplicate Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/duplicate-method/llms-full.txt)
- **Next:** [Worksheet.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/worksheet/id-property/llms-full.txt)
