---
title: Power BI Custom Visuals - Sparkline
description: Learn how the Sparkline Power BI Custom Visual allows you to display trends in data through an animated line visual.
---

[Pragmatic Works Nerd News ](https://pragmaticworks.com/blog)

# [Power BI Custom Visuals - Sparkline](https://pragmaticworks.com/blog/power-bi-custom-visuals-sparkline)

 Written by [Devin Knight](https://pragmaticworks.com/blog/author/devin-knight) | Nov 03, 2016

In this module, you will learn how to use the Sparkline Power BI Custom Visual.  The Sparkline visual allows you to display trends in data through an animated line visual.

### Module 23 – Sparkline

### Downloads

- Power BI Custom Visual – [Sparkline](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/Ejn3BZIKy-NHk0DHsQUqT5QBx8WaO5HCyu0Qo7pWOzaWmw?e=7NVAie)
- Dataset – [Insurance Claims.xlsx](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/EtRhs1d_irRBvhiN0pq3cTIB8w9i2fh4ThZK5TTqyyALOw?e=69S5Um)
- Completed Example – [Module 23 – Sparkline.pbix](https://pragmaticworksonline.sharepoint.com/:f:/s/FileShare/EtRhs1d_irRBvhiN0pq3cTIB8w9i2fh4ThZK5TTqyyALOw?e=69S5Um)

### Key Takeaways

- Shows trends in data most often by time.
- It can only visualize a single measure.
- The Sparkline visual can be configured to animate across time.

<https://devinknightsql.files.wordpress.com/2016/11/image.png>

*This Sparkline shows the number of insurance claims by year.*

- Under the **Format** paintbrush there are a few settings that allow you to customize the way data is presented in the Sparkline.
- Under the **Visual_General **section you can adjust the thickness of the line by increasing the size property. Here you can also change the color of the line itself.

<https://devinknightsql.files.wordpress.com/2016/11/image1.png>

- If you turn on the **Animation **section, it will animate the Sparkline over your Category axis. 
    - Here you can adjust the **Duration** of how long the animation takes.
    - You can also determine the **Delay** between each execution of the animation.

<https://devinknightsql.files.wordpress.com/2016/11/image2.png>

- In addition to these properties, you have a set of settings that appears on every visual to adjust the background color, add a border around the visual and lock the aspect ratio.

### Find Out More

You will always be able to find this video module and advanced viewing of future modules on the Pragmatic Works On-Demand Training platform or [view my previous blog posts](https://blog.pragmaticworks.com/topic/power-bi-custom-visuals).

[View full post](https://pragmaticworks.com/blog/power-bi-custom-visuals-sparkline)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Devin Knight"
  },
  "dateModified" : "2023-03-28T17:26:05.960Z",
  "datePublished" : "2016-11-03T13:57:45Z",
  "headline" : "Power BI Custom Visuals - Sparkline",
  "image" : {
    "@type" : "ImageObject",
    "height" : 200,
    "url" : "http://blog.pragmaticworks.com/hubfs/Banners/Power-BI-Banner.jpg",
    "width" : 600
  },
  "mainEntityOfPage" : "https://pragmaticworks.com/blog/power-bi-custom-visuals-sparkline",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://blog.pragmaticworks.com/hubfs/PW%20Logo-2.png",
      "width" : 217.56097
    },
    "name" : "Pragmatic Works Blog"
  }
}
```