Bullet Code Samples
The following code is an example of a basic bullet column.
bullet column = "Cost"
Here is the
result of the code in DiveTab.
Here is an example of a bullet column that specifies bar-color and a title.
bullet column = "Cost" {
title "Bullet - Cost"
bar-color "af2828"
}
NOTE: The the horizontal bar in the bullet column is green by default.
Here is the
result of the code in DiveTab.
Here is an example of a bullet column that includes a title, bar-color, and threshold column.
bullet column = "Cost" {
title "Cost, Net Sales"
bar-color "af2828"
threshold column = "Net Sales"
}
Here is the
result of the code in DiveTab.
Here is an example of a bullet column that includes a title, bar-color, and two columns.
bullet column = "Cost" {
title "Cost, Net Sales"
bar-color "af2828"
value2 column = "Net Sales"
}
Here is the
result of the code in DiveTab.
NOTE: The bar-color only applies to the first column, bullet column. The color of the second column, value2 column, cannot be customized.
Here is an example of a bullet column that includes a title, bar-color, and background-color.
bullet column = "Cost" {
title "Bullet - Cost"
bar-color "af2828"
background-color "c2e1e5"
}
Here is the
result of the code in DiveTab.
Here is a customized bullet column that includes a title, bar-color, threshold, background-color, two columns, and a fixed width.
bullet column = "Cost" {
title "Cost, Discount; Net Sales"
bar-color "af2828"
threshold column = "Net Sales"
background-color "c2e1e5"
value2 column = "Discount"
width 300
scale-format "#,###"
}
Here is the
result of the code in DiveTab.