-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I often have to graph bytes or large numbers. It would be helpful if I could pass a function in that can be used to format the number shown, something like:
memPlot := asciigraph.Plot(memUsed,
asciigraph.Caption("Memory Storage"),
asciigraph.FormatValue(func(v float64) string {
return humanize.IBytes(v)
}),
asciigraph.Width(width))
You'd call that when rendering the numbers
If you think this is a good idea I can try to contribute that, just wanted to sniff test the idea with you first @guptarohit
guptarohit
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request