For bullet chart, you need two metrics. One is the actual metric and the second is the Target metric.
Bullet charts are used mainly for measuring performance against a target. This makes having a second set of metric necessary.
Consider the below example
We have added two metrics in the Values bucket, 1. Actual and 2. Target.
The “Actual” metric needs to be the first in the sequence.
Within the Properties, there is a separate section for Bullet Graph.
It contains two properties
- Bullet Range%
- Bullet Range Colors
Bullet range is expressed as percentage of the Target value. The percentage always start with 0% and end at 100%.
In the figure above, you can see that the range is defined as [20,40,80].
This is a simple array of numbers between 0 and 100. You can define as many sections you need for the bullet graph.
The first number in the list defines the range from 0% to 20%.
The second number in the list defines the range from 20% to 40%
So by default the last range is from 40% to 100%.
The question is then what is the number 80% stand for?
The last number in the range always define the “Blue marker” position. The blue bar is positioned at 80% of the Target Value.
Bullet Range Colors
The colors are also a simple list of hex codes and the number of colors should match the number of sections you need for the bullet ranges.
In the above figure, we have provided three different shades of Gray
[“#F0F0F0” , “#D9D9D9” , “#BDBDBD” ]
- Four bullet sections
2. Two bullet sections
Bullet Range% : [50,85]
Bullet Colors : [“#e377c2″,”#7f7f7f”]
Some sample color palettes
palette1 : [“#ffffe5″,”#f7fcb9″,”#d9f0a3”]
palette2 : [“#fee391″,”#fec44f”,”#fe9929″,”#ec7014″]
palette3 : [“#9970ab”,”#c2a5cf”,”#e7d4e8″,”#f7f7f7″]