Bars with a target line
->bullet() draws one row per rep: the blue bar is their sales last month, the short vertical line is their monthly target. On the right: the sales and the share of the target.
Note: Try it
Find the reps whose line is green: they reached their target. Point at a row to read the sales, the target and the share. Click a row to see that rep’s orders, then Back.
Shaded bands: under 60%, under 90%, above
->bands([60, 90]) adds gray shades behind each bar, measured against that rep’s own target: the darkest part ends at 60% of the target, the next at 90%. The same data as above.
Note: Try it
Look where each blue bar ends: in the dark part (under 60%), the middle part (60–90%) or the light part (above 90%). A rep with a higher target has longer shades.
A meter: this year against the budget of the year
->gauge() with one category draws one large meter: the blue arc is the sales from 1 January until today, the dark line is the budget of the whole year.
Note: Try it
Read the sales in the middle and the share of the budget under it. The scale runs from $0 on the left to the number on the right.
One meter per rep
With more than one category, ->gauge() puts one meter per rep side by side. The same sales and targets as the bars at the top of the page.
Note: Try it
Compare the reps at a glance. Make the window narrow, as on a phone: the meters wrap onto more rows.