InfoCaptor

  1. Home
  2. Docs
  3. InfoCaptor
  4. Visualizations
  5. How to create Horizontal Bullet Chart

How to create Horizontal Bullet Chart

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

  1. Bullet Range%
  2. Bullet Range Colors

Bullet Range%

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” ]

Examples

  1. Four bullet sections

[20,40,60,80]
[“#e377c2″,”#7f7f7f”,”#bcbd22″,”#17becf”]

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″]

Was this article helpful to you? Yes No

How can we help?