Bullet Code Samples

The following code is an example of a basic bullet column.

  bullet column = "Cost" 

Here is the Closedresult of the code in DiveTab.

Simple example of a bullet

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 Closedresult of the code in DiveTab.

Bullet example that specifies title and bar color

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 Closedresult of the code in DiveTab.

Bullet with Title, Bar Color, and Threshold

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 Closedresult of the code in DiveTab.

Bullet with Title, Bar Color, and Two Values

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 Closedresult of the code in DiveTab.

Bullet with Title, Bar Color, and Background Color

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 Closedresult of the code in DiveTab.

Complicated example of a bullet