Trying to build a bar chart. I have several values 2, 4, 7, 8, 12. I can determine that the largest is 12. So I'd like it to be 100%.
So what would I do next?
1% would be 12/100 = .12
shall I multiply each number by .12 and then round up? And after that get a 1 pizel image and multiply by each result to get an image size for each value? Sounds like this is what i need to do, but at the same time sounds quirte convoluted... Is there a better way?