I want a function that takes in a array let's say
[ 4, 5, 6, 3, 4]
Then the output will be a histogram graph.
I am thinking of an way which use "|" and "_" to make the graph so the histogram will look something like below.
_
| |
| |
| |
| |
Anyone could suggest me an algorithm?