nats-io / natscli

The NATS Command Line Interface
Apache License 2.0
510 stars 99 forks source link

Fork and update guptarohit/asciigraph #1180

Closed ploubser closed 3 weeks ago

ploubser commented 3 weeks ago

Here we fork guptarohit/asciigraph and add it to our internal packages.

We have added the ability to specify a ValueFormatter option for a graph, allowing us to prettify the lables shown on the y-axis of a graph.

With that we have added the ability to specify AlwaysY, which will force the graph to draw the y-axis even in cases where the input data is 0, allowing us to draw multiple graphs in the terminal with consistent size and clariy.