YouPlot
YouPlot copied to clipboard
Left-align labels
I'd like to be able to left-align the labels, like this:
Areas of the World's Major Landmasses
┌ ┐
Australia ┤■■■■■■■■■■■■■■■■■■■■■■■■■ 2968.0
Europe ┤■■■■■■■■■■■■■■■■■■■■■■■■■■ 3745.0
Antarctica ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■ 5500.0
South America ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 6795.0
North America ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 9390.0
Africa ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 11506.0
Asia ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 16988.0
I often list directory/file paths, and when they're right-aligned it's all janky and hard to read.
I suppose I could create a PR for this if you like, but:
- what should the option be called?
- would you merge it?
Hi! YouPlot is just a simple wrapper around UnicodePlot. This repository only provides a command-line tool. So, if you want to implement "left-align labels," you should submit a pull request to UnicodePlot, not YouPlot.
If you're curious why this library is implemented in Ruby, please read this: https://github.com/red-data-tools/YouPlot/issues/34#issuecomment-1385419115
Good luck.