> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/~/changes/eYCCpn9cCBKOYnZA6a8f/building-apps/ui-widgets-and-elements/display-widgets/sparkline.md).

# Sparkline

A sparkline is a minimalist chart designed to show trends or patterns in data at a glance.&#x20;

In Heisenware, the Sparkline widget includes 7 different chart types.

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2Fg0beAUw1wVVFJxHdIGO3%2FScreenshot%202024-08-20%20at%2018.56.42.png?alt=media&amp;token=d31c8d7b-b97c-4a02-8885-ac898d7d3f07" alt="" width="375"><figcaption></figcaption></figure>

### Widget Settings

The fields displayed in the chart can be changed in the `Widget Settings` tab (Gear icon :gear:).

The `Argument Key` is the X-axis of the sparkline, and the `Value Key` is the Y-axis.

In this tab there are also options to set a maximum and minimum value to display, and to ignore empty data points.

### Styling

All the visual customization options are in the `Styling` tab.

The options include cusomizing the colors of the&#x20;

The options include selecting one of the following chart types:

* Area
* Bar
* Line
* Spline
* Spline Area
* Step Line
* Win-Loss Bar: Bars showing whether a data point is above or below a set threshold.&#x20;

<figure><img src="https://3495989837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FE5Ketpww1s7TauSAJrJ8%2Fuploads%2FXx5T7lktGCe6lnVqzYU7%2FwinLossBar.png?alt=media&amp;token=388af572-f13b-4c2c-b2e4-604cc030e40e" alt="" width="289"><figcaption><p>Win-Loss Bar</p></figcaption></figure>

{% hint style="info" %}
Note: Custom colors are not visible in Build Mode.
{% endhint %}

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.heisenware.com/~/changes/eYCCpn9cCBKOYnZA6a8f/building-apps/ui-widgets-and-elements/display-widgets/sparkline.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
