# 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FMSE6w0So2TKwWaNWVdvv%2Fimage.png?alt=media&#x26;token=1eba5aac-38db-4eff-aefa-85f140e18dd7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2Fbx1GERjdxGzpKxSXnJjR%2Fimage.png?alt=media&#x26;token=688d2664-80ff-47ab-adca-461fad4aef43" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FpNI2UVXdMr6Xt1r3Tp0u%2Fimage.png?alt=media&#x26;token=04e8dd60-5b40-40e1-863c-968789dd3349" 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FwUeKsZQoxRcfXgdR65Bm%2Fimage.png?alt=media&#x26;token=a2205e54-13be-47e0-8f3f-fbb8f1f12e24" 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FdTLmtGEAGuL5chSoFdCV%2Fimage.png?alt=media&#x26;token=f15d198f-9edb-44da-ae10-d5d3a12eb02f" 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FDgwQwD9XoPyV94wvy6yS%2Fimage.png?alt=media&#x26;token=4d5bccaa-a1be-41dd-908e-416d793fb589" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2Fjr6GUWDnPpSjfexKEdlw%2Fimage.png?alt=media&#x26;token=fca65097-a6e9-4eb3-beda-c4c3e5ad8bdf" alt=""><figcaption></figcaption></figure>

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