gizak / termui

Golang terminal dashboard
MIT License
13.11k stars 786 forks source link

BarChart custom Bar annotations #146

Closed jozuenoon closed 5 years ago

jozuenoon commented 7 years ago

It would be very nice to add custom Bar annotations. Now Bar annotation is derived directly from Data field.

Use case is eg. having very similar output in terms of scale eg. 10k +/- 100 is displaying exactly same height bars, I want to scale them to display only relevant range so difference is noticeable at chart but this breaks value annotations on bars so I can't see what original data value was.

Another possible solution is adding eg. [2]YRange which would contain Y range to plot.