If you don't mind a basic vertical graph, then you could create two loops - an outer loop controlled by the length of data and an inner loop controlled by data's value at each iteration for printing a chosen graphing character.