1
00:00:01,800 --> 00:00:05,390
A sparkline is a mini chart inside a single cell.

2
00:00:05,390 --> 00:00:11,870
The typical spark line is either a line chart or a column chart and they're great for visualizing data

3
00:00:11,870 --> 00:00:12,610
trends.

4
00:00:12,620 --> 00:00:19,160
In this case I have profit information by month for each division and let's visualize this in terms

5
00:00:19,160 --> 00:00:20,110
of a sparkline.

6
00:00:20,230 --> 00:00:26,030
I'm going to click on the cell I want to have the spark line in, go to insert, from the sparkline group

7
00:00:26,030 --> 00:00:26,780
here.

8
00:00:26,780 --> 00:00:31,460
Let's start with the line sparkline. First off, we need to choose the data that we want.

9
00:00:31,460 --> 00:00:32,850
What's the data range

10
00:00:32,870 --> 00:00:37,340
we want to visualize. Well, in the first case I just want this line of data.

11
00:00:37,550 --> 00:00:42,740
I'm also going to take into account the months I don't have data in yet because I want to have my spark line

12
00:00:42,800 --> 00:00:48,140
updated the moment new data come in. The location I want to have my sparkline in

13
00:00:48,200 --> 00:00:51,640
that was the active cell which is fine so click on okay.

14
00:00:51,800 --> 00:00:58,310
That's my sparkline. Immediately I get a new tab and I have some options I can adjust here.

15
00:00:58,310 --> 00:01:02,420
One option is for example the line color. You might want to change that.

16
00:01:02,540 --> 00:01:08,480
You might also want to change the thickness of your lines so you can do that from the weight options

17
00:01:08,480 --> 00:01:09,280
here.

18
00:01:09,290 --> 00:01:13,120
You might also want to bring attention to certain data points.

19
00:01:13,130 --> 00:01:19,780
For example, what's the highest point on this line? Well, it looks like it's the third data point.

20
00:01:19,780 --> 00:01:24,380
It looks like it's March. To make it faster to read

21
00:01:24,380 --> 00:01:28,770
we can bring attention to that data point. In the show options,

22
00:01:28,940 --> 00:01:31,760
put a check mark beside the highest point.

23
00:01:31,790 --> 00:01:35,650
We can also bring attention to the low point on this chart.

24
00:01:35,780 --> 00:01:38,450
The colors in this case are both red.

25
00:01:38,450 --> 00:01:41,340
Let's update them under the marker color.

26
00:01:41,360 --> 00:01:47,750
Here you can decide the different colors you want to have for the different points we have in the show

27
00:01:47,810 --> 00:01:48,890
section here.

28
00:01:48,890 --> 00:01:52,520
For the highest point I want to have a green color.

29
00:01:52,520 --> 00:01:56,010
I'm fine with the red color for the low point.

30
00:01:56,030 --> 00:01:57,730
What about negative points?

31
00:01:57,740 --> 00:02:00,380
Let's also put another color for that.

32
00:02:00,740 --> 00:02:03,320
Let's go with an orange.

33
00:02:03,410 --> 00:02:06,610
In this case I don't see any orange.

34
00:02:06,730 --> 00:02:10,550
Why? I don't have any negative points in this dataset.

35
00:02:10,580 --> 00:02:13,640
I have some negative points here down on the bottom.

36
00:02:13,700 --> 00:02:17,810
How do I apply the sparkline to the other lines as well?

37
00:02:17,810 --> 00:02:23,410
Well I have to do is drag the reference down, just like I would with a formula.

38
00:02:23,420 --> 00:02:26,030
Now we can see an orange point here.

39
00:02:26,030 --> 00:02:33,290
If I want to be able to better visualize the trend. I can expand the height of the cells. Because what

40
00:02:33,290 --> 00:02:38,370
the sparkline does is it tries to fill up the space in the cell.

41
00:02:38,420 --> 00:02:40,370
What happens if more data come in?

42
00:02:40,400 --> 00:02:46,010
Let's just copy this and paste it right here.

43
00:02:46,020 --> 00:02:52,970
The sparkline updates automatically. One important option when working with spark lines are the axis options.

44
00:02:53,030 --> 00:03:00,830
By default, each sparkline is set to an automatic minimum and an automatic maximum.

45
00:03:00,860 --> 00:03:06,560
This means you can't compare one of these with the other because each one has their own minimum.

46
00:03:06,890 --> 00:03:13,180
You can take a look at the trend within that category but you can't compare them with one another.

47
00:03:13,310 --> 00:03:19,820
If you wanted to compare them to each other you have to set the same minimum and the same maximum for

48
00:03:19,820 --> 00:03:20,550
all of them.

49
00:03:21,230 --> 00:03:23,140
Let's do that and see how this changes.

50
00:03:23,150 --> 00:03:24,620
Let's put the minimum

51
00:03:24,680 --> 00:03:28,860
same for all spark lines and go back and set the maximum

52
00:03:29,000 --> 00:03:30,770
same for all spark lines.

53
00:03:30,770 --> 00:03:32,900
Now we have a different type of visualization.

54
00:03:32,900 --> 00:03:39,380
We notice that the game division seems to be doing better in comparison to the other two divisions.

55
00:03:39,380 --> 00:03:45,290
The other thing you notice is that wherever we click anywhere inside the sparkline, everything is selected

56
00:03:45,590 --> 00:03:47,860
because by default they're grouped together.

57
00:03:47,870 --> 00:03:52,950
So whatever option you apply to them it's going to apply to all three.

58
00:03:53,150 --> 00:03:59,780
If you didn't want that and you wanted to have one of these different to the others, you have to ungroup

59
00:04:00,140 --> 00:04:02,370
your sparklines.

60
00:04:02,510 --> 00:04:05,060
This way each one can be updated separately.

61
00:04:05,060 --> 00:04:10,940
I'm just going to press Control+Z to go back. If you wanted to get rid of your sparkline, you just have

62
00:04:10,940 --> 00:04:13,370
to press the clear option here.

63
00:04:13,430 --> 00:04:16,320
Now let's just change this to a column chart.

64
00:04:16,339 --> 00:04:19,720
What if we decided that the line chart doesn't work so great here.

65
00:04:19,760 --> 00:04:21,589
Let's switch this to a column chart.

66
00:04:21,589 --> 00:04:24,670
You just have to click on the column type.

67
00:04:24,740 --> 00:04:30,540
Remember here the access options are set to be the same for all three so we can actually compare them

68
00:04:30,920 --> 00:04:35,820
and again we can see also with the column chart that the game division seems to be doing better.

69
00:04:35,870 --> 00:04:42,380
It also seems to be doing very good in the fifth month here. Now the down side of sparklines is that they

70
00:04:42,380 --> 00:04:45,220
don't have an axis with labels.

71
00:04:45,350 --> 00:04:52,310
But if you wanted to make it easier to read the sparklines, you can add your own axis with labels.

72
00:04:52,310 --> 00:04:59,300
All you have to do is to type the axis yourself in a cell and obviously type it in a way that is going

73
00:04:59,300 --> 00:04:59,880
to fit.

74
00:04:59,960 --> 00:05:02,350
I can't put like January, February, March.

75
00:05:02,450 --> 00:05:04,820
But I can put the first letter for every month.

76
00:05:04,820 --> 00:05:08,220
So J, F, M, and so on.

77
00:05:08,460 --> 00:05:12,840
And then all you have to do is to fit your access on top of the spark line.

78
00:05:12,880 --> 00:05:13,970
Now the way I had it.

79
00:05:13,970 --> 00:05:15,670
Looks like it's a good fit.

80
00:05:15,710 --> 00:05:21,950
By quickly looking at this, I can tell that the utility division had its highest profit in April and

81
00:05:21,950 --> 00:05:24,520
the game division it was in May.

82
00:05:24,520 --> 00:05:30,260
Another option you have under the Axis option is to show the axis.

83
00:05:30,320 --> 00:05:34,220
That might make it easier to see the negative points.

84
00:05:34,220 --> 00:05:38,240
You can also plot the data right to left.

85
00:05:38,240 --> 00:05:44,630
If I wanted to show December first and then November and January last, I choose right to left.

86
00:05:44,630 --> 00:05:46,950
Otherwise, we can go with the default.

87
00:05:46,970 --> 00:05:50,650
The third type of sparkline is a win/loss sparkline.

88
00:05:50,990 --> 00:05:56,480
That's good for visualizing game results. So you can see the positive results and the negative results

89
00:05:56,600 --> 00:05:57,440
very fast

90
00:05:57,440 --> 00:05:59,300
with this visualization.

91
00:05:59,300 --> 00:06:00,680
Okay so that's it.

92
00:06:00,680 --> 00:06:03,880
That's how you can visualize your data using sparklines.

