i will not give answers here,
but i m sure you can find out the problem with those questions:
you want do draw bar graph, usually few rectangles, how many times do you call rect() in your code?
i guess rect() need to be different size, what is the variable changing rect size, where this variable come from?
when you do println(), do you get the values expected?
and last what is the purpose of tracks? where do you use it?
let s start with that,