View the code on GitHub.
This page allows you to experiment with the various label placement algorithms. NOTE: This example highlights the bounds of each text label as a green rectangle in order to highlight overlaps, in most practical applications this rectangle would remain hidden!