Skip to content

Labels

The label of each circle comes from data.labels, as in a pie chart. It is drawn centred in the circle, and only where every line fits: a larger font leaves more of the small circles without a label, and none is clipped.

formatter returns the text, an array for several lines. color is a function of the row, ctx.raw, that marks the activities over 40 hours, and backgroundColor is an array that colours the circles in turn.