You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i can confirm this, this happens because config.Height is an int, when you use a series with values less than 1 the calculated height will be 0.x something but when it gets set to an int it gets rounded off to 0, that 0 is then used for ratio calculation which in turn becomes zero and then zeroes everything out
First off, thanks for creating this. It is very useful!
This data results in a graph with a flat line with all values at 0.00.
func main() {
data := []float64{.2, .3, .2}
graph := asciigraph.Plot(data)
fmt.Println(graph)
}
The text was updated successfully, but these errors were encountered: