# SparklineType Type

> SparklineType type alias in the Node.js TypeScript API: The sparkline kind line, column or win-loss, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > SparklineType Type
- **316 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sparklinetype/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sparklinetype/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sparklinetype/llms-full.txt

---

Public type for SparklineType.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
type SparklineType = 'line' | 'column' | 'win-loss';
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

const value: Awaited<ReturnType<ServerSheetControl['workbook']['getSparklineGroups']>>[number]['type'] = 'line';
console.log(value);
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt)

---

## Nearby

- **Previous:** [SparklineOptions.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sparklineoptions/type-property/llms-full.txt)
- **Next:** [Spreadsheet Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheet/llms-full.txt)
