uPlot icon indicating copy to clipboard operation
uPlot copied to clipboard

Support line breaks in axis labels

Open miwig opened this issue 3 years ago • 1 comments

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.

miwig avatar Mar 21 '22 12:03 miwig

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?

leeoniya avatar Mar 22 '22 16:03 leeoniya