Demonstrates the D3 ray-label plugin for labeling slices of pie and donut graphs based on the angle of each slice's centroid.
Label font sizes are scaled (within bounds) based on the size of the slice.
Plugin is hosted on Github.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #fcfcfa; | |
} | |
.stroke { | |
fill: none; |
Demonstrates the D3 ray-label plugin for labeling slices of pie and donut graphs based on the angle of each slice's centroid.
Label font sizes are scaled (within bounds) based on the size of the slice.
Plugin is hosted on Github.