uPlot
uPlot copied to clipboard
Support line breaks in axis labels
Axis labels are drawn using ctx.fillText, which apparently does not support line breaks. It would be nice if uPlot could work around this automatically.
should be pretty easy to add. just copy/paste a few bits from the axis renderer:
https://github.com/leeoniya/uPlot/blob/852829eced8a2bc52c58646636f4daa9b42e68cc/src/uPlot.js#L1804-L1818
want to make a PR?