iamhrayr/chartjs-plugin-piechart-outlabels ? reverse-engineered prompt

Reverse engineered prompt

Build me a Chartjs plugin that puts labels outside pie and doughnut charts, with clean connector lines and a lot of control over how the labels look. I want it to work with Chartjs 2.7 or newer, and I want a simple sample page that shows it working right away.

Please include the main plugin code, a bundled build I can use directly, and a small docs setup that explains how to install it, use it, and tweak the label formatting and styling. Make sure it supports the usual things people would want, like changing font, color, spacing, alignment, and how the text is formatted.

Also include a sample chart with a few slices so I can see the labels outside the chart clearly. If you need to check the current Chartjs docs online while building it, feel free to do that.