> For the complete documentation index, see [llms.txt](https://docs.xviz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xviz.com/performance-management/display-data-in-the-cards/sparkline-trends.md).

# Sparkline Trends

In addition to showing the KPIs and Variance to a benchmark, we can also visualize the trend of a KPI.

Insert a Category in the ‘Sparkline’ data field which will be the X-axis:<br>

<figure><img src="/files/VONwgC3asy5nMmZnmkdT" alt=""><figcaption></figcaption></figure>

Let’s also add a third metric for Employee Performance in the ‘Values’ data field:<br>

<figure><img src="/files/WgIfubBKCMGtASBNrwEq" alt=""><figcaption></figcaption></figure>

By default, all the measures in the ‘Values’ field will be plotted in the Sparkline:

<figure><img src="/files/xxhviQdbHTXGwPCaeA2V" alt=""><figcaption></figcaption></figure>

We can select the measures to be used in the Sparkline using the Sparkline ‘Settings’ in the top ribbon menu:

<figure><img src="/files/CK8sWJpjKeVU2bpt5nW5" alt=""><figcaption></figcaption></figure>

For our example, let’s plot only ‘Performance Score’ in the Sparkline as shown in the above settings. The visual now looks as shown below:<br>

<figure><img src="/files/nZ0iY7sqqIp7MaSP5FlZ" alt=""><figcaption></figcaption></figure>

We can also change the ‘Chart Type’ to change the line chart of the sparkline to an alternate visualization:

<figure><img src="/files/YRH8qoLmRNfuIspOo8l8" alt=""><figcaption></figcaption></figure>

Additional configurations for the sparkline are provided here:<br>

<figure><img src="/files/cHHysJJOXBxmNMaWfTFF" alt=""><figcaption></figcaption></figure>

For our example, we have set the Chart Type to Area Chart. And enabled Marker for all datapoints.
